public static function Time() { $base_begin = explode(' ', self::$base_begin); $base_end = explode(' ', self::$base_end); $test_begin = explode(' ', self::$test_begin); $test_end = explode(' ', self::$test_end); $base = (double) $base_end[0] + (double) $base_end[1] - ((double) $base_begin[0] + (double) $base_begin[1]); $test = (double) $test_end[0] + (double) $test_end[1] - ((double) $test_begin[0] + (double) $test_begin[1]); if ($test > $base) { self::$time = $test - $base; } else { self::$time = 0; } }
chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); chr(ord(1)); } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(2500, 5000, 'Conv/s'); exit;
json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); json_encode($a); // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(2000, count($a), 'Ent/s'); exit;
$t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; $t . $d; // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(10000, 2097152, 'B/s'); exit;
1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; 1 * 1 + 1; } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(50000, 15000, 'Op/s'); exit;
$o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; $o = new t17(); $o = null; } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(2000, 5000, 'Time/s'); exit;
token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); token_get_all($d); // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(2000, 1048576, 'B/s'); exit;
file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); file_get_contents($f); } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(100 * 1000, 32768, 'B/s'); exit;
foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } foreach ($d as $k => $v) { } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(1000, count($d), 'Ent/s'); exit;
require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; include './t0.php'; require './t0.php'; } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(50, 2000, 'Time/s'); exit;
pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0); } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(3000, 20000, 'Conv/s'); exit;
$box[$i] = $box[$j]; $box[$j] = $tmp; } for ($a = $j = $i = 0; $i < $data_length; $i++) { $a = ($a + 1) % 256; $j = ($j + $box[$a]) % 256; $tmp = $box[$a]; $box[$a] = $box[$j]; $box[$j] = $tmp; $k = $box[($box[$a] + $box[$j]) % 256]; $cipher .= chr(ord($data[$i]) ^ $k); } return $cipher; } // ===== 0 =================================================================== PHPMark::BaseBegin(); // ===== 1 =================================================================== // ===== 1 =================================================================== PHPMark::BaseEnd(); PHPMark::TestBegin(); // ===== 2 =================================================================== t9($d, $k); t9($d, $k); t9($d, $k); t9($d, $k); t9($d, $k); // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(5, 1048576, 'B/s'); exit;
t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); t3(); } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(10000, 10000, 'Call/s'); exit;
base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); base64_encode($d); base64_decode($d); // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(2000, strlen($b) + strlen($d), 'B/s'); exit;
file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); file_put_contents($f, $d); } // ===== 2 =================================================================== PHPMark::TestEnd(); PHPMark::Mark(); PHPMark::Data(3000, 32768, 'B/s'); @unlink($f); exit;