Framework performance yii, yaf, ci Comparative like php

Just chat and friends, recognizing yaf, yaf remote c framework written, the entire framework written in php extension. php startup when it was loaded into memory, the speed is much stronger performance than write php framework, but the ide relatively trouble, the performance is absolutely praise. Translation of a foreign framework for performance comparison article. Case The test output simple hello word, simple MVC logic, (Router -> Controller -> Viewer), there is no database connection, there is no logic hardware platform CPU: Intel Core i5 750 (2.67GHz x4) RAM: 4GB software environment Debian 6.0.4 x86_64 (2.6.32-41) apache 2.2.16 (mpm-prefork, mod-php5) php 5.3.10 php-apc 3.1.9 (Optimization for include / The require) Copy All the Projects to / dev / SHM / * (Files Optimization for the Read / the Write) PHP framework list * zf: the Zend framework Site: http://framework.zend.com Ver: 1.11.11 * ZF2: the Zend framework Site : http://framework.zend.com Site: https://github.com/zendframework/ZendSkeletonApplication Ver: 2.0.0-beta1 * symfony: symfony Site: http://www.symfony-project.org Ver: 2.0.0 * cakephp: CakePHP Site: http://cakephp.org Ver: 2.0.4 * ci: CodeIgniter Site: http://codeigniter.com Ver: 2.1.0 * yii: Yii Framework Site: http://www.yiiframework.com Ver: 1.1.8 * micromvc4: MicroMVC Site: http://www.micromvc.com Ver: 4.0.0 * laravel: Laravel, A PHP Framework For Web Artisans Site: http://laravel.com Ver: 2.0.2 * slim: Slim Framework Site: http://www.slimframework.com Ver: 1.5.0 * yaf: Yet Another Framework in PHP Extension Site: http://code.google.com/p/yafphp Ver: 2.1.3-Beta (yaf.cache_config = 1) * FuelPHP: the Simple, Flexible, Community Community Driven Framework Web Site: http://fuelphp.com/ ver: 1.1 * ColaPHP: Site: http://code.google .com / P / colaphp / Ver: 1.2 Ga-# XHProf: A Site Five your Hierarchical the Profiler for the PHP: http://pecl.php.net/xhprof Ver: # 0.9.2 Testing of The Source code of the this: the Source: HTTPS: //github.com/eryx/php-framework-benchmark 1. Benchmark the Apache requests pre SECOND (-C 30000 100 -n), Bigger IS better The request / sec (-c 200 -n 50000), the greater the value the better 2 system load stress test load of FIG completed in one minute as small as possible (100 -n -C 30000) 3. memory usage test hello word memory used as small as possible. 4. the response time of the page response time. unit subtle Number (Facebook XHProf) 5. call the method of a single page calls hello word how much method, zend5620 a method that is not too bloated. Details of the function call graph
Symfony2 Zend Framework 1.11.1
Zend Framework 2.0.0-beta1 CakePHP 2.0.4
CodeIgniter 2.1.0 Yii Framework 1.1.8
Slim 1.5 Laravel 2.0.2
MicroMVC 4.0.0 Yaf 2.1.3-beta
FuelPHP 1.1 ColaPHP 1.2
6. The number of files open hellow word used included or required in the number of files. The smaller the better, zend lot, yii19 months, yaf only four, unhappy strange.   Original Address: http: //www.ruilog.com/blog/view/b6f0e42cf705.html reproduced, please indicate the survival time from the operation and maintenance: http: //www.ttlsa.com/html/3348.html

Reproduced in: https: //my.oschina.net/766/blog/211240

Guess you like

Origin blog.csdn.net/weixin_33674976/article/details/91548509