php5.6好还是php7.0好,PHP7.0.4与PHP5.6.19对比

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值