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;
$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;
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;
$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;
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;
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;
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;
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;
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;
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;