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
Bechmark
More details:

the result is clear, right?
thanks
引用来自“eliu03”的评论
不知道为啥比来比去,毫无意义。有人能用“最慢”的框架写出最有价值的程序。而有人用“最快”的框架成天写着“hello world”。引用来自“ZeroOne”的评论
这句话真的很经典.引用来自“sky3hao”的评论
从数据上看yaf速度是比phalcon快点.
但是据说yaf在功能上很简单,只实现了URL路由和MVC.
而phalcon就很全面了.
但是据说yaf在功能上很简单,只实现了URL路由和MVC.
而phalcon就很全面了.
引用来自“xpentium”的评论
我怎么记得yaf 是.net的
引用来自“xpentium”的评论
我怎么记得yaf 是.net的
引用来自“JayKong”的评论
没看明白,yaf的load值是最大的,这代表什么呢?zf2.0的load值是最小的,难道zf2.0是最快的?求解求解。楼下回答