

Yaf and Phalcon, which is faster?
source link: https://www.laruence.com/2012/09/16/2791.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Yaf and Phalcon, which is faster?
- 本文地址: https://www.laruence.com/2012/09/16/2791.html
- 转载请注明出处
After Yaf, there comes another PHP framework in extension(在Yaf发布以后, 又出现了一个PHP扩展的框架 Phalcon): Phalcon.
then there raise a problem, which people have asked multi-times to me, that is , which one is the *fastest*(于是就出现一个问题, 不停的有人问, 到底Yaf和Phalcon哪个快, 因为他们都在他们的主页上宣称是最快的框架)? Yaf, or Phalcon. as they both declared they are the fastest(Yaf, Phalcon)
So I did a simple benchmark(所以我做了个简单的测试), the benchmark scripts is provide by Ruilog, and could be found at: benchmark scripts
Hardware(测试机器)
- 8 * Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
- MemTotal: 12296092 kB
- Apache 2.2
- PHP 5.4.7 with APC-3.1.13
Benchmakr result(测试结果)
ab -n 30000 -c 100
BechmarkMore details:
- framework QPS, LOAD, MEM(KB), TIME(ms); functions, include files
- symfony2 3707, 5.06, 0.00, 0.00; 3707, 5.06, 0.00, 0.00; 0, 0
- zf 1446,25.11, 0.00, 0.00; 1446,25.11, 0.00, 0.00; 0, 0
- zf2 678,49.44, 0.00, 0.00; 678,49.44, 0.00, 0.00; 0, 0
- cakephp 2361,16.11, 0.00, 0.00; 2361,16.11, 0.00, 0.00; 0, 0
- fuelphp 3742, 7.55, 0.00, 0.00; 3742, 7.55, 0.00, 0.00; 0, 0
- kohana 3336, 9.30, 0.00, 0.00; 3336, 9.30, 0.00, 0.00; 0, 0
- ci 5764, 7.14, 0.00, 0.00; 5764, 7.14, 0.00, 0.00; 0, 0
- yii 6343, 6.52, 0.00, 0.00; 6343, 6.52, 0.00, 0.00; 0, 0
- slim 6626, 5.60, 0.00, 0.00; 6626, 5.60, 0.00, 0.00; 0, 0
- laravel 7386, 5.55, 0.00, 0.00; 7386, 5.55, 0.00, 0.00; 0, 0
- doophp 11859, 5.18, 0.00, 0.00; 11859, 5.18, 0.00, 0.00; 0, 0
- colaphp 13701, 4.76, 0.00, 0.00; 13701, 4.76, 0.00, 0.00; 0, 0
- micromvc4 13386, 4.59, 0.00, 0.00; 13386, 4.59, 0.00, 0.00; 0, 0
- phalcon 14289, 4.22, 0.00, 0.00; 14289, 4.22, 0.00, 0.00; 0, 0
- yaf 15990, 4.21, 0.00, 0.00; 15990, 4.21, 0.00, 0.00; 0, 0
the result is clear, right?
thanks
Recommend
-
110
Phalcon 3.3.0 released and Merry Christmas Dec...
-
51
PHP MVC Frameworks preview of 2018 (Phalcon 3, Symfony 4, Laravel 5.x and others)
-
54
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
-
17
自动加载器在一个大型PHP项目中,往往是最容易被忽视的性能点,因为它一般而言都很简单, 但是它的调用次数确实非常之大。 Yaf 也不例外,虽然
-
24
Yaf(Yet Another Framework) 是我的第一个发布的PECL扩展,也是我走上PHP内核维护的开始,我一直对它比较有感情,Yaf在过去的8年多时间里,也得到了不少朋友的喜爱,当然Yaf还是有很...
-
23
We are an open source web framework for PHP delivered as a C extension offering high performance and lower resource consumption
-
9
Yaf 3.2 发布 jre zhang June 5, 2020 lstat(“/m/www/glocash-code/new-admin/yafapp/application/modules/Admin/controllers/Index.php”, {st_mode=S_IFREG|0755, st_size=9108, …}) =...
-
8
Yaf-一个PHP扩展实现的PHP框架 本文地址: https://www.laruence.com/2010/09/04/1736.html 转载请注明出处
-
8
Yaf 2.1性能测试(Yaf 2.1 Benchmark) 本文地址: https://www.laruence.com/2011/12/02/2333.html 转载请注明出处
-
9
Yaf-3.1 10%性能提升版 本文地址: https://www.laruence.com/2020/03/15/5563.html 转载请注明出处
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK