This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CFLAGS='-g' LDFLAGS='-v' CC=clang CXX=clang++ \ | |
./configure \ | |
--disable-all \ | |
--enable-fuzzer \ | |
--with-pic \ | |
--enable-debug-assertions \ | |
--enable-undefined-sanitizer \ | |
--enable-address-sanitizer \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = explode('/', readlink('/proc/self/exe')); | |
$GLOBALS['commit'] = str_replace('php-', '', array_pop($path)); | |
$GLOBALS['iterations_per_test'] = 5000; | |
function bench($func, $arg, $iterations) { | |
$t1 = microtime(true); | |
while ($iterations-- > 0) { | |
$func($arg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = explode('/', readlink('/proc/self/exe')); | |
$GLOBALS['commit'] = str_replace('php-', '', array_pop($path)); | |
$GLOBALS['iterations_per_test'] = 10000; | |
function bench($func, $arg, $iterations) { | |
$t1 = microtime(true); | |
while ($iterations-- > 0) { | |
$func($arg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$oldphp = File.join(__dir__, '../../sapi/cli/php-9308974f8c') | |
$newphp = File.join(__dir__, '../../sapi/cli/php-a14a5ef07f') | |
require 'fileutils' | |
include FileUtils | |
# UTF-8 | |
encodings = %w{UTF-7 UTF-16 UTF-16BE UTF-16LE UTF-32 UTF-32BE UTF-32LE UCS-2 UCS-2BE UCS-2LE UCS-4 UCS-4BE UCS-4LE SJIS ISO-2022-JP EUC-JP} |