msgbartop
PHP语言, PHP扩展, Zend引擎相关的研究,技术,新闻分享 – 左手代码 右手诗
msgbarbottom

16 Sep 12 Yaf and Phalcon, which is faster?

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:

framework QPS, LOAD, MEM(KB), TIME(ms); functions, include files
 symfony2     3707, 5.06,   0.00,  0.00;    3707, 5.06,   0.00,  0.00;      0,    0
       zf     1446,25.11,   0.00,  0.00;    1446,25.11,   0.00,  0.00;      0,    0
      zf2      678,49.44,   0.00,  0.00;     678,49.44,   0.00,  0.00;      0,    0
  cakephp     2361,16.11,   0.00,  0.00;    2361,16.11,   0.00,  0.00;      0,    0
  fuelphp     3742, 7.55,   0.00,  0.00;    3742, 7.55,   0.00,  0.00;      0,    0
   kohana     3336, 9.30,   0.00,  0.00;    3336, 9.30,   0.00,  0.00;      0,    0
       ci     5764, 7.14,   0.00,  0.00;    5764, 7.14,   0.00,  0.00;      0,    0
      yii     6343, 6.52,   0.00,  0.00;    6343, 6.52,   0.00,  0.00;      0,    0
     slim     6626, 5.60,   0.00,  0.00;    6626, 5.60,   0.00,  0.00;      0,    0
  laravel     7386, 5.55,   0.00,  0.00;    7386, 5.55,   0.00,  0.00;      0,    0
   doophp    11859, 5.18,   0.00,  0.00;   11859, 5.18,   0.00,  0.00;      0,    0
  colaphp    13701, 4.76,   0.00,  0.00;   13701, 4.76,   0.00,  0.00;      0,    0
micromvc4    13386, 4.59,   0.00,  0.00;   13386, 4.59,   0.00,  0.00;      0,    0
  phalcon    14289, 4.22,   0.00,  0.00;   14289, 4.22,   0.00,  0.00;      0,    0
      yaf    15990, 4.21,   0.00,  0.00;   15990, 4.21,   0.00,  0.00;      0,    0

the result is clear, right?

thanks


分享到:



Related Posts:

Tags: , , , ,

40 Responses to “Yaf and Phalcon, which is faster?”

  1. Gorden |

    买东西不能只比便宜,要看性价比。同理,光快是不够的。
    yaf能不能把框架应该提供的类库做起来,并且同样性能比较好?(跟zend, yii比,不要跟特别简单的东西比。)

  2. simapple |

    laravel在2版本的时候也这么“嚣张”呢

  3. Submit Local Reviews To Bing |

    Debt negotiation is likely to have a negative impact on your
    credit score. Instead, this same character, the older version of Talia, continues to narrate
    at key points in the film – except that we never get to see
    who is behind the voice. Look for sites and providers that have
    fair shipping costs before locking into any purchase.

    My web blog :: Submit Local Reviews To Bing

  4. superdrive mac g5, fix slow using macbook pro,mobile accessories, iphone app development, iphone covers Deals, iphone covers coupons, wedding planner iphone app |

    This adapter will plug into your laptop’s Micro-DVI port and carry
    a signal out from that port to make sure you a digital display that
    contains a regularly sized DVI source. The speaker bar above each
    of our keyboard produces acceptable audio best.

    Feel free to surf to my website: superdrive mac g5, fix slow using macbook pro,mobile accessories, iphone app development, iphone covers Deals, iphone covers coupons, wedding planner iphone app

  5. iranw |

    yaf和pha比是快点 但是如果算上开发效率 yaf自然不能与pha相提并论(注:当然很佩服鸟哥滴)

    框架没有最好的 只有最适合的

  6. yak |

    yaf怎么样只输出json ?

  7. Johnny |

    windows dll的连接挂了,请处理,谢谢!

  8. D |

    Please add Lithium framework.

  9. Yaf的一些资源 | 午后小憩 |

    [...] Yaf and Phalcon, which is faster? [...]

  10. 请手动释放你的资源(Please release resources manually) | 午后小憩 |

    [...] Yaf and Phalcon, which is faster? [...]

  11. 关于Yaf的一些说明 | 午后小憩 |

    [...] Yaf and Phalcon, which is faster? [...]

  12. Yaf and Phalcon, which is faster? | 午后小憩 |

    [...] 本文地址: http://www.laruence.com/2012/09/16/2791.html [...]

  13. 刘宝成 |

    占个座

  14. Johnny |

    解决了,不好意思

  15. Johnny |

    yaf安装不了,确少pcre.h文件,centos5.5新安装的,pcre已经启用,php53-devel也安装了。全盘找不到pcre.h
    为啥?大牛

  16. 星期八 |

    Yaf_Config_Ini 不错,我觉得这个完全可以独立出来作为一个扩展使用

  17. 雪候鸟 |

    @testf 请确保你看明白了文章开头的第二段文字. 谢谢

  18. testf |

    只比快是不科学的

  19. testf |

    一定比phalcon快,因为不是一个量级,你的明白?

  20. Anonymous |

    菜鸟求解释,没有看懂,1600这个数字是什么意思

  21. Zong |

    鸟哥,app 应用支持独立二级域名访问吗?

  22. 雪候鸟 |

    @raydez 静态变量可以

  23. raydez |

    鸟哥,yaf中,plugin里可以设置或者修改controller的变量么

  24. 小牛 |

    不错,不错,学习了!

  25. 久久星座约会 |

    久久星座约会
    以星座为主题的网络约会,爱情交友,目前只加女生

    Q群:235893866

  26. jason.Pan |

    It’s honor to meet you .

  27. Untitled |

    功能还有待进一步完善

    Layout
    Orm
    Acl
    Log
    .
    .
    .
    .

  28. Yaf and Phalcon, which is faster?树林/咖啡 成都专业php网站制作 | 树林/咖啡 成都专业php网站制作 |

    [...] 风雪之隅 » PHP应用 Posted in: php / Tagged: faster, Phalcon, which [...]

  29. 钱服哇丞 |

    石家庄星座约会
    以星座为主题的同城约会,爱情交友,目前只同意女生加群。

    Q群:235893866

  30. 五点晨曦 |

    Doo一个纯php框架的性能居然保持跟yaf在同一个级别倒是很让我吃惊。
    Laravel的性能也相当不错,我最近很留意这个框架,在github上非常活跃,经常在我的首页刷屏,现在大版本号都已经彪到3了。

  31. shirne |

    对CI比较失望
    怎么没有算上Think

  32. yearnfar |

    呵呵,快一点没啥意思,最重要的是谁更强大,谁给程序员更多的自由~

  33. 奇言妙事-文学奇谈小小说阅读xlinblog.sinaapp.com » Yaf and Phalcon, which is faster? |

    [...] 本文地址: http://www.laruence.com/2012/09/16/2791.html [...]

  34. 雪候鸟 |

    @michae http://www.yafdev.com/

  35. michae |

    老大,YAF有没有windows下为不同版本编译好的dll啊?

  36. dafei |

    zf怎么这么慢

  37. emeraldZj |

    呵呵

  38. MiPHP |

    欣赏。。。

  39. ElmerZhang |

    俺就是试试能不能评论

  40. 裤子哦掉啦 |

    果然一目了然

Leave a Reply

*