快速业务通道

Yaf 2.1性能测试(Yaf 2.1 Benchmark)

作者 佚名技术 来源 NET编程 浏览 发布时间 2012-07-03

  Thanks to Ruilog agian for his work of second benchmark of Yaf 2.1.

  Yaf 2.1 (docs) did a lot of work to improve performance and reduce memory usage, so let’s take a look at the result(Yaf 2.1重写了很多逻辑来提升性能, 并且降低内存使用率, 改进结果见测试对比):

  First of all, I have to say, I am not saying the fastest is the best. every framework list blew is outstanding, and has particular situation to deploy. (首先, 我要申明, 不一定最快的就是最好的, 下面的每一个框架都是优秀的框架, 都有它们适用的场景)

  Case

  Test Simple “Hello World” page output, Simple MVC logic(Router -> Controller -> Viewer), No Database Connections, No complex logic. Test scripts can be found here.

  Hardware platform

  CPU: Intel Core i5 750 (2.67GHz x4)

  RAM: 4GB

  Software Environment

  Debian 6.0.3 x86_64 (2.6.32-39)

  apache 2.2.16 (mpm-prefork,mod-php5)

  php 5.3.8

  php-apc 3.1.9 (Optimization for include/require)

  Copy all projects to /dev/shm/* (Optimization for files read/write)

  1. Apache Benchmark

  Requests pre second (-c 100 -n 30000), the bigger is better

  

\

 

  ab -c100 -n30000

  Requests pre second (-c 200 -n 50000), the bigger is better

  

\

 

  ab -c200 -n50000

  2. System LoadAvg

  System LoadAvg in 1 Minute when Apache Benchmark Complete, the smaller is better (-c 100 -n 30000)

  

\

 

  System LoadAvg (ab -c100 -n30000)

  3. Memory usage

  How many memory usage in one “hello world” page. the smaller is better.

  

\

 

  Memory usage

  4. Response time

  The time of page request to response.

  

\

 

  Response time

  5.Number of function calls (Facebook XHProf)

  The number of functions calls in one “hello world” page.

  

\

 

  Number of function calls

  6. Number of included files

  The number of files included or required in one “hello world” page. the fewer is better.

  

\

 

  Number of included files

  –EOF–

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号