php5.6 7 速度,php5.3 php5.6 php.7.0.8 速度比较

[root@localhost test]# /usr/local/php53/bin/php bench.php

simple             0.130

simplecall         0.233

simpleucall        0.299

simpleudcall       0.276

mandel             0.379

mandel2            0.452

ackermann(7)       0.200

ary(50000)         0.025

ary2(50000)        0.019

ary3(2000)         0.199

fibo(30)           0.595

hash1(50000)       0.038

hash2(500)         0.038

heapsort(20000)    0.101

matrix(20)         0.124

nestedloop(12)     0.193

sieve(30)          0.121

strcat(200000)     0.014

------------------------

Total              3.437

[root@localhost test]# /usr/local/php56/bin/php bench.php

simple             0.086

simplecall         0.024

simpleucall        0.124

simpleudcall       0.121

mandel             0.213

mandel2            0.264

ackermann(7)       0.118

ary(50000)         0.027

ary2(50000)        0.026

ary3(2000)         0.188

fibo(30)           0.405

hash1(50000)       0.052

hash2(500)         0.043

heapsort(20000)    0.096

matrix(20)         0.085

nestedloop(12)     0.102

sieve(30)          0.102

strcat(200000)     0.013

------------------------

Total              2.091

[root@localhost test]# /usr/local/php7_0_8/bin/php bench.php

simple             0.067

simplecall         0.025

simpleucall        0.048

simpleudcall       0.065

mandel             0.184

mandel2            0.191

ackermann(7)       0.042

ary(50000)         0.027

ary2(50000)        0.016

ary3(2000)         0.103

fibo(30)           0.171

hash1(50000)       0.021

hash2(500)         0.016

heapsort(20000)    0.048

matrix(20)         0.048

nestedloop(12)     0.077

sieve(30)          0.026

strcat(200000)     0.007

------------------------

Total              1.180

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值