forked from eryx/php-framework-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
157 lines (122 loc) · 4.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
How to run this benchmark
Software Environment
apache 2.2.x (mpm-prefork,mod-php5)
php 5.3.x
php-apc 3.1.9 (Optimization for include/require)
php-curl
php-gd
php-intl
php-xhprof (A Hierarchical Profiler for PHP)
Download the Source
git clone git://github.com/eryx/php-framework-benchmark.git
Copy all projects to /dev/shm/* (Optimization for files read/write)
cp -rp php-framework-benchmark /dev/shm/
Apache settings
cd /dev/shm/php-framework-benchmark
Debian/Ubuntu
cp ./apache-pfb.conf /etc/apache2/sites-enabled/
chown -R www-data:www-data .
CentOS
cp ./apache-pfb.conf /etc/httpd/conf.d/
chown -R apache:apache .
Restart Apache Server
Hosts settings
cd php-framework-benchmark
cat ./hosts-pfb >> /etc/hosts
Confirm all sites are available
http://zf.pfb.example.com/?debug=1
http://zf2.pfb.example.com/?debug=1
http://ci.pfb.example.com/?debug=1
http://yii.pfb.example.com/?debug=1
http://micromvc4.pfb.example.com/?debug=1
http://cakephp.pfb.example.com/?debug=1
http://symfony2.pfb.example.com/?debug=1
http://yaf.pfb.example.com/?debug=1
http://laravel.pfb.example.com/?debug=1
http://slim.pfb.example.com/?debug=1
http://colaphp.pfb.example.com/?debug=1
http://fuelphp.pfb.example.com/?debug=1
Run the benchmark scripts
php bench.php -c 100 -n 5000 (clients:100, numbers:5000)
About 1~3 hours later, all of the test data be saved in the ./result-*
@2012-05-18
-----------------------------------------------
* Optimized configuration for symfony2 (Commit By https://github.com/Smart-Core)
Patch https://github.com/eryx/php-framework-benchmark/pull/2
@2012-12-18
fuelphp 1.4
ci 2.1.3
cola -
doophp -
kohana 3.3.0
@2012-02-29
-----------------------------------------------
* FuelPHP: Simple, Flexible, Community driven Web Framework
Site: http://fuelphp.com/
Ver: 1.1
* ColaPHP:
Site: http://code.google.com/p/colaphp/
Ver: 1.2-ga
@2011-12-01
-----------------------------------------------
* zf: Zend Framework
Site: http://framework.zend.com
Ver: 1.11.11
* zf2: 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.6
* 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)
# XHProf: A Hierarchical Profiler for PHP
Site: http://pecl.php.net/xhprof
Ver: 0.9.2
# Test report:
http://www.ruilog.com/blog/view/b6f0e42cf705.html
@2011-07-01
-----------------------------------------------
* zf: Zend Framework
Site: http://framework.zend.com
Ver: 1.11.7
* ci: CodeIgniter
Site: http://codeigniter.com/
Ver: 2.0.2
* yii: Yii Framework
Site: http://www.yiiframework.com/
Ver: 1.1.8
* yaf: Yet Another Framework in PHP Extension
Site: http://code.google.com/p/yafphp/
Ver: 2.0.1
* micromvc: MicroMVC
Site: http://www.micromvc.com/
Ver: 3.1.0
* proem: The Proem Framework
Site: http://proemframework.org
Ver: 0.5.1 pre-alpha
# XHProf: A Hierarchical Profiler for PHP
Site: http://pecl.php.net/xhprof
Ver: 0.9.2
# Test report:
http://www.ruilog.com/blog/view/5271.html