$a = array();
for($i=0;$i<600000;$i++){
$a[$i] = $i;
}
foreach($a as $i)
{
array_key_exists($i, $a);
}
ab.exe -n1000 -c10 http://keywords.bailitop.com/test.php
PHP7.0.4
Server Software: Apache/2.4.18
Server Hostname: keywords.bailitop.com
Server Port: 80
Document Path: /test.php
Document Length: 0 bytes
Concurrency Level: 10
Time taken for tests: 140.091 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 200000 bytes
HTML transferred: 0 bytes
Requests per second: 7.14 [#/sec] (mean)
Time per request: 1400.906 [ms] (mean)
Time per request: 140.091 [ms] (mean, across all concurrent requests)
Transfer rate: 1.39 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 2
Processing: 587 1396 233.1 1306 1986
Waiting: 587 1396 233.1 1305 1986
Total: 587 1396 233.0 1306 1986
Percentage of the requests served within a certain time (ms)
50% 1306
66% 1431
75% 1607
80% 1654
90% 1754
95% 1817
98% 1884
99% 1908
100% 1986 (longest request)
PHP5.6.19
Server Software: Apache/2.4.18
Server Hostname: keywords.bailitop.com
Server Port: 80
Document Path: /test.php
Document Length: 0 bytes
Concurrency Level: 10
Time taken for tests: 295.511 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 202000 bytes
HTML transferred: 0 bytes
Requests per second: 3.38 [#/sec] (mean)
Time per request: 2955.108 [ms] (mean)
Time per request: 295.511 [ms] (mean, across all concurrent requests)
Transfer rate: 0.67 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.0 0 16
Processing: 1813 2946 429.7 2908 5365
Waiting: 1813 2945 429.5 2907 5365
Total: 1814 2946 429.8 2908 5365
Percentage of the requests served within a certain time (ms)
50% 2908
66% 3078
75% 3188
80% 3256
90% 3475
95% 3684
98% 4035
99% 4287
100% 5365 (longest request)