yiilite.php,PHP框架Laravel,Yii,Yaf等路由性能测试 - 小众知识

本文仅在满足个人的尝鲜欲:Laravel实现的IOC,Yii 2大量使用PHP 5.4新特性以及Yaf c模块扩展的实现方式,都是我之前工作里很少能遇到的。至于测试本身,可能遗漏了其他常用的PHP框架,如CI、Zend等,各位看官了解一下就好,如果有什么意见和不同见解,希望多多和我讨论。

After Yaf, there comes another PHP framework in extension(在Yaf发布以后, 又出现了一个PHP扩展的框架 Phalcon): Phalcon.

then there raise a problem, which people have asked multi-times to me, that is , which one is the *fastest*(于是就出现一个问题, 不停的有人问, 到底Yaf和Phalcon哪个快, 因为他们都在他们的主页上宣称是最快的框架)? Yaf, or Phalcon. as they both declared they are the fastest(Yaf, Phalcon)

So I did a simple benchmark(所以我做了个简单的测试), the benchmark scripts is provide by Ruilog, and could be found at: benchmark scripts

Hardware(测试机器)

8 * Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

MemTotal: 12296092 kB

Apache 2.2

PHP 5.4.7 with APC-3.1.13

Benchmakr result(测试结果)

ab -n 30000 -c 100

94c5227f7b960703b71b52381321236f.png

Bechmark

More details:

241882bc8f639cd63c52ea35810e8e0e.png

the result is clear, right?

thanks

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值