Yaf 2.1性能测试(Yaf 2.1 Benchmark)
2011-12-02 15:15
483 查看
作者: Laruence
本文地址: http://www.laruence.com/2011/12/02/2333.html
Thanks to Ruilog agian for his work of second
benchmark of Yaf 2.1.
Yaf 2.1 did a lot of work to improve performance and reduce memory usage, so let’s take a look at the result(Yaf 2.1重写了很多逻辑来提升性能, 并且降低内存使用率, 改进结果见测试对比):
Case
Test Simple “Hello World” page output, Simple MVC logic(Router -> Controller -> Viewer), No Database Connections, No complex logic. (简单的测试Hello world).
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)
Test scripts can be found
here.
Requests pre second (-c 200 -n 50000), the bigger is better
the smaller is better (-c 100 -n 30000)
–EOF–
本文地址: http://www.laruence.com/2011/12/02/2333.html
Thanks to Ruilog agian for his work of second
benchmark of Yaf 2.1.
Yaf 2.1 did a lot of work to improve performance and reduce memory usage, so let’s take a look at the result(Yaf 2.1重写了很多逻辑来提升性能, 并且降低内存使用率, 改进结果见测试对比):
Case
Test Simple “Hello World” page output, Simple MVC logic(Router -> Controller -> Viewer), No Database Connections, No complex logic. (简单的测试Hello world).
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)
Test scripts can be found
here.
1. Apache Benchmark
Requests pre second (-c 100 -n 30000), the bigger is betterRequests pre second (-c 200 -n 50000), the bigger is better
2. System LoadAvg
System LoadAvg in 1 Minute when Apache Benchmark Complete,the smaller is better (-c 100 -n 30000)
3. Memory usage
How many memory usage in one “hello world” page. the smaller is better.4. Response time
The time of page request to response.5.Number of function calls (Facebook XHProf)
The number of functions calls in one “hello world” page.6. Number of Files
The number of files included or required in one “hello world” page. the fewer is better.–EOF–
相关文章推荐
- Yaf 2.1性能测试(Yaf 2.1 Benchmark)
- 各PHP框架 性能测试(Yaf 2.1 Benchmark)
- yaf性能测试(wamp环境)
- redis-benchmark-Redis性能测试工具(自带)
- Kafka设计解析(五)- Kafka性能测试方法及Benchmark报告
- php pear benchmark测试随机生成密码函数性能
- Redis-benchmark测试Redis性能
- redis-benchmark测试并发性能
- Kafka设计解析(五)- Kafka性能测试方法及Benchmark报告
- Kafka设计解析(五)- Kafka性能测试方法及Benchmark报告
- 转载-网站性能测试工具Apache Benchmark的使用说明
- web性能测试:apache benchmark(ab)
- Benchmark性能测试工具,TestDFSIO/TeraSort
- CodeIgniter源码阅读笔记(4)——性能测试Benchmark.php
- Kafka设计解析(五)- Kafka性能测试方法及Benchmark报告
- Benchmark Web App 性能瓶颈分析与性能测试工具的使用方法总结
- 轻量级性能测试工具之Apache Benchmark
- js 使用benchmark 测试代码性能
- Kafka设计解析(五)- Kafka性能测试方法及Benchmark报告
- redis性能测试(redis-benchmark)