• 技术文章 >php教程 >php手册

    Yaf and Phalcon, which is faster?

    2016-06-06 20:07:50原创587

    作者: Laruence( ) 本文地址: http://www.laruence.com/2012/09/16/2791.html 转载请注明出处 After Yaf, there comes another PHP framework in extension(在Yaf发布以后, 又出现了一个PHP扩展的框架 Phalcon): Phalcon. then there raise a problem, which

    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(测试机器)

    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


    Comments


    Related posts:


    Copyright © 2010 风雪之隅 版权所有, 转载务必注明. 该Feed只供个人使用, 禁止未注明的转载或商业应用. 非法应用的, 一切法律后果自负. 如有问题, 可发E-mail至my at laruence.com.(Digital Fingerprint: 73540ba0a1738d7d07d4b6038d5615e2)
    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:Yaf and Phalcon which faster
    上一篇:wnpmx 配置小记 下一篇:PHP抓取TP-Link页面获取外网IP脚本
    20期PHP线上班

    相关文章推荐

    • 【活动】充值PHP中文网VIP即送云服务器• 限制上传文件类型程序代码• 基于php实现七牛抓取远程图片• 谈PHP闭包特性在实际应用中的问题(1)• 探秘PHP 5的对象重载技术(1)• PHP实现人人OAuth登录和API调用
    1/1

    PHP中文网