Beispiel #1
0
 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;
     }
 }
Beispiel #2
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;
Beispiel #3
0
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;
Beispiel #4
0
$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;
Beispiel #5
0
    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;
Beispiel #6
0
    $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;
Beispiel #7
0
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;
Beispiel #8
0
    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;
Beispiel #9
0
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;
Beispiel #10
0
    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;
Beispiel #11
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);
    pack('VVVVVVVV', 0, 0, 0, 0, 0, 0, 0, 0);
}
// ===== 2 ===================================================================
PHPMark::TestEnd();
PHPMark::Mark();
PHPMark::Data(3000, 20000, 'Conv/s');
exit;
Beispiel #12
0
        $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;
Beispiel #13
0
    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;
Beispiel #14
0
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;
Beispiel #15
0
    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;