仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1963|回复: 19
打印 上一主题 下一主题

[学习教程] PHP教程之Yaf 2.1功能测试(Yaf 2.1 Benchmark)

[复制链接]
变相怪杰 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-16 00:22:37 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
怎么配置呢 ,问最好的老实百度,问啥都有答案。所以用好搜索引擎是学好的令1个关键,程序会出各样的问题,没有1个人可能会碰到所有的问题,所有就可以问百度这个大家精华的集合了。      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–
不懂的问题有很多高手帮你解决。但不要认为你是新手,就不能帮助别人,比如今天你学会了怎样安装PHP,明天还可能有朋友会问这个问题,你就可以给他解答,不要认为这是浪费时间,忙别人其实就是帮助自己。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-17 08:52

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表