标题: PHP教程之Yaf 2.1功能测试(Yaf 2.1 Benchmark) [打印本页] 作者: 变相怪杰 时间: 2015-2-16 00:22 标题: PHP教程之Yaf 2.1功能测试(Yaf 2.1 Benchmark) 怎么配置呢 ,问最好的老实百度,问啥都有答案。所以用好搜索引擎是学好的令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