Skip to content

Commit 3f95f71

Browse files
Увеличил счетчики
1 parent f46633e commit 3f95f71

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

bench.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
'7' => 45,
6363
);
6464
$dumbTestMaxPhpTimes = array(
65-
'4.4' => 0.088,
66-
'5.2' => 0.059,
67-
'5.3' => 0.057,
65+
'4.4' => 0.894,
66+
'5.2' => 0.596,
67+
'5.3' => 0.566,
6868
// 5.4, 5.5, 5.6
69-
'5' => 0.57,
69+
'5' => 0.578,
7070
// 7.0, 7.1
71-
'7' => 0.029,
71+
'7' => 0.289,
7272
);
7373
$testsLoopLimits = array(
7474
'01_math' => 1400000,
@@ -284,7 +284,7 @@ function dumb_test_Functions()
284284
{
285285
global $stringTest;
286286

287-
$count = 10000;
287+
$count = 100000;
288288
$time_start = get_microtime();
289289
$stringFunctions = array('strtoupper', 'strtolower', 'strlen', 'str_rot13', 'ord', 'mb_strlen', 'trim', 'md5', 'json_encode');
290290
foreach ($stringFunctions as $key => $function) {
@@ -410,6 +410,8 @@ function dumb_test_Functions()
410410
}
411411

412412
$dumbTestTime = dumb_test_Functions();
413+
// Debug
414+
// print($dumbTestTime);
413415
if ($dumbTestTime > $dumbTestTimeMax) {
414416
$factor *= 1.0 * $dumbTestTimeMax / $dumbTestTime;
415417
}

0 commit comments

Comments
 (0)