uawdijnntqw1x1x1
IP : 18.118.144.239
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
.
/
..
/
.
/
.
/
opt
/
alt
/
python33
/
..
/
php52
/
..
/
tests
/
alt-php84-pecl-msgpack_2.2.0-1.el8
/
tests
/
035.phpt
/
/
--TEST-- Profiling perf test. --SKIPIF-- <?php if (!extension_loaded("msgpack")) { die("skip"); } if (defined("PHP_DEBUG") && PHP_DEBUG) { die("skip debug build"); } ?> --FILE-- <?php $data_array = array(); for ($i = 0; $i < 5000; $i++) { $data_array[random_bytes(10)] = random_bytes(10); } $time_start = microtime(true); for ($i = 0; $i < 4000; $i++) { $s = msgpack_serialize($data_array); $array = msgpack_unserialize($s); unset($array); unset($s); } $time_end = microtime(true); if ($time_end <= $time_start) { echo "Strange, $i iterations ran in infinite speed: $time_end <= $time_start", PHP_EOL; } else { $speed = $i / ($time_end - $time_start); printf("%d iterations took %f seconds: %d/s (%s)\n", $i, $time_end - $time_start, $speed, ($speed > 400 ? "GOOD" : "BAD")); } ?> --EXPECTF-- %d iterations took %f seconds: %d/s (GOOD)
/home/./../././opt/alt/python33/../php52/../tests/alt-php84-pecl-msgpack_2.2.0-1.el8/tests/035.phpt