PHP框架 ThinkPHP3.2.3 Yii2 Laravel4.2 并发测试

WBOY
Release: 2016-06-23 13:40:54
Original
1089 people have browsed it

一直听说PHP框架中Yii是多么多么的企业级,Laravel是多么多么的艺术、优雅、先进。而且他俩的性能又是多么多么的卓越,搞得我心痒痒的,好像去深入学习下。

由于我最近的新项目在用ThinkPHP开发,所以一直再考虑要不要换框架(学好Yii或Laravel再后换)。今晚没事,就来测试下他们的并发。


机器配置:


运行环境:

OS X 10.10 自带的 Apache 2.4.9 + brew安装的 PHP 5.4.33


测试内容:

在控制器中直接输出

echo 'osc';
Copy after login


测试命令:

$ ab -n 30000 -c 100 http://xxx
Copy after login


测试结果:

ThinkPHP3.2.3 默认配置测试结果:


Yii2 这样安装的:composer create-project yiisoft/yii2-app-basic basic 2.0.2


Laravel4.2是这样安装的:composer create-project laravel/laravel --prefer-dist

测 Laravel 的时候风扇都启动了,呼呼那个吹啊。


总结:

我擦,虽然测试结果看得不是很明白,但我还是继续用我的 ThinkPHP 吧。哈哈

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template