Frameworks Benchmark KumbiaPHP vs (Yii CodeIgniter Kohana Zend Prado CakePHP Symfony)
Sumario
- 1 UPDATE: Benchmark de frameworks php actualizdo 2017
UPDATE: Benchmark de frameworks php actualizdo 2017
KumbiaPHP Version 1.0 Spirit vs (Symfony, Zend, CakePHP, Yii, Kohana, Prado, CodeIgniter)
Comenzamos a publicar una serie de Benchmark que hemos realizado a la versión 1.0 Spirit vs (Symfony, Zend, CakePHP, Yii, Kohana, Prado, CodeIgniter) como se aprecia en comparacion con el Benchmark anterior hemos incorporado otros frameworks, todos son MVC Frameworks en PHP. La intención es mostrar los avances que hemos obtenido con la última versión (Spirit) de KumbiaPHP Framework.
La Metodología
Cada Framework que se le aplico las pruebas se hace utilizando las mas mínima medidas de configuración y control posible, de manera de hacer efectiva un “Hola Mundo”, el enfoque minimalista mide la capacidad de respuesta de los componentes del Framework. No hay código de aplicación para ejecutar el controlador de las acciones en el Framework de cada uno haga lo menos posible para generar la salida. Esto nos muestra el máximo rendimiento posible, añadiendo código sólo reducirá la respuesta del mismo.
Cada Benchmark de los Framework’s usa los siguientes scripts o equivalentes…
* Bootstrap. * Configuración por defecto. * Front-controller ó dispatcher. * Page-controller ó action-controller. * Una acción sin código, otras que invocan una vista. * Vista estática con solo “Hello World!”.
Se utiliza el Apache por referencia “ab” herramienta para la medición de las solicitudes por segundo, en localhost para negar los efectos de latencia de red, con 10 peticiones concurrentes durante 60 segundos, con APC y sin APC. El comando es así:
ab -c 10 -t 60 http://localhost/[path]
Servidor
* Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz. * 3GiB Memoria RAM. * 160GiB Disco Duro. * Server version: Apache/2.2.11 . * S.O. Debian Squeeze. * ApacheBench, Version 2.3.
Resultados Con APC
Document Path: /phpmark-read-only/spirit/app/public/hola_mundo Requests per second: 970.89 [#/sec] (mean) Document Path: /phpmark-read-only/yii-1.0.6/index.php Requests per second: 582.75 [#/sec] (mean) Document Path: /phpmark-read-only/codeigniter-1.7.0/index.php Requests per second: 561.63 [#/sec] (mean) Document Path: /phpmark-read-only/yii-1.0.6/index2.php Requests per second: 527.42 [#/sec] (mean) Document Path: /phpmark-read-only/kohana/index.php/hola Requests per second: 302.32 [#/sec] (mean) Document Path: /phpmark-read-only/zend-1.8.2/index.php Requests per second: 243.14 [#/sec] (mean) Document Path: /phpmark-read-only/prado-3.1.3/index.php Requests per second: 123.52 [#/sec] (mean) Document Path: /phpmark-read-only/cake_1.2.3.8166/index.php/benchmark Requests per second: 121.07 [#/sec] (mean) Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php Requests per second: 94.10 [#/sec] (mean)
Resultados Sin APC
Document Path: /phpmark-read-only/spirit/app/public/hola_mundo Requests per second: 257.92 [#/sec] (mean) Document Path: /phpmark-read-only/codeigniter-1.7.0/index.php Requests per second: 138.34 [#/sec] (mean) Document Path: /phpmark-read-only/kohana/index.php/hola Requests per second: 119.85 [#/sec] (mean) Document Path: /phpmark-read-only/yii-1.0.6/index.php Requests per second: 109.46 [#/sec] (mean) Document Path: /phpmark-read-only/yii-1.0.6/index2.php Requests per second: 63.69 [#/sec] (mean) Document Path: /phpmark-read-only/zend-1.8.2/index.php Requests per second: 54.85 [#/sec] (mean) Document Path: /phpmark-read-only/cake_1.2.3.8166/index.php/benchmark Requests per second: 35.12 [#/sec] (mean) Document Path: /phpmark-read-only/prado-3.1.3/index.php Requests per second: 31.05 [#/sec] (mean) Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php Requests per second: 28.07 [#/sec] (mean)
Gráfica
Detalles Resultados con APC
~~~ Testing KumbiaPHP 1.0 : http://localhost/phpmark-read-only/spirit/app/public/hola_mundo
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/spirit/app/public/hola_mundo
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 30.001 seconds
Complete requests: 29128
Failed requests: 0
Write errors: 0
Total transferred: 13370670 bytes
HTML transferred: 291300 bytes
Requests per second: 970.89 [#/sec] (mean)
Time per request: 10.300 [ms] (mean)
Time per request: 1.030 [ms] (mean, across all concurrent requests)
Transfer rate: 435.22 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 2 10 17.8 5 540
Waiting: 2 8 15.8 4 540
Total: 2 10 17.8 5 540
Percentage of the requests served within a certain time (ms)
50% 5
66% 8
75% 11
80% 14
90% 25
95% 35
98% 48
99% 59
100% 540 (longest request)
~~~ Testing Yii 1.0.6 : http://localhost/phpmark-read-only/yii-1.0.6/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/yii-1.0.6/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.004 seconds
Complete requests: 17485
Failed requests: 0
Write errors: 0
Total transferred: 4528874 bytes
HTML transferred: 192346 bytes
Requests per second: 582.75 [#/sec] (mean)
Time per request: 17.160 [ms] (mean)
Time per request: 1.716 [ms] (mean, across all concurrent requests)
Transfer rate: 147.40 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 4 5.3 0 37
Processing: 3 13 12.2 11 298
Waiting: 0 10 9.9 9 298
Total: 3 17 12.4 17 298
Percentage of the requests served within a certain time (ms)
50% 17
66% 19
75% 21
80% 22
90% 25
95% 32
98% 46
99% 63
100% 298 (longest request)
~~~ Testing kohana v2.3.4 : http://localhost/phpmark-read-only/kohana/index.php/hola
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/kohana/index.php/hola
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 30.001 seconds
Complete requests: 9070
Failed requests: 0
Write errors: 0
Total transferred: 2340834 bytes
HTML transferred: 90730 bytes
Requests per second: 302.32 [#/sec] (mean)
Time per request: 33.077 [ms] (mean)
Time per request: 3.308 [ms] (mean, across all concurrent requests)
Transfer rate: 76.20 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 24
Processing: 6 33 29.6 22 247
Waiting: 0 21 22.1 13 223
Total: 6 33 29.6 22 247
Percentage of the requests served within a certain time (ms)
50% 22
66% 38
75% 48
80% 55
90% 75
95% 92
98% 113
99% 127
100% 247 (longest request)
~~~ Testing CakePHP 1.2.3 : http://localhost/phpmark-read-only/cake_1.2.3.8166/index.php/benchmark
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/cake_1.2.3.8166/index.php/benchmark
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.017 seconds
Complete requests: 3634
Failed requests: 0
Write errors: 0
Total transferred: 1574821 bytes
HTML transferred: 40007 bytes
Requests per second: 121.07 [#/sec] (mean)
Time per request: 82.599 [ms] (mean)
Time per request: 8.260 [ms] (mean, across all concurrent requests)
Transfer rate: 51.24 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 3.4 0 77
Processing: 15 82 46.8 78 321
Waiting: 0 66 42.0 60 321
Total: 15 82 46.8 78 321
Percentage of the requests served within a certain time (ms)
50% 78
66% 97
75% 111
80% 120
90% 144
95% 166
98% 195
99% 218
100% 321 (longest request)
~~~ Testing CodeIgniter 1.7.0 : http://localhost/phpmark-read-only/codeigniter-1.7.0/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/codeigniter-1.7.0/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.000 seconds
Complete requests: 16849
Failed requests: 0
Write errors: 0
Total transferred: 4364668 bytes
HTML transferred: 185372 bytes
Requests per second: 561.63 [#/sec] (mean)
Time per request: 17.805 [ms] (mean)
Time per request: 1.781 [ms] (mean, across all concurrent requests)
Transfer rate: 142.08 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 3 18 17.4 11 154
Waiting: 3 12 13.7 7 140
Total: 3 18 17.4 11 154
Percentage of the requests served within a certain time (ms)
50% 11
66% 18
75% 25
80% 29
90% 42
95% 54
98% 68
99% 79
100% 154 (longest request)
~~~ Testing Prado 3.1.3 : http://localhost/phpmark-read-only/prado-3.1.3/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/prado-3.1.3/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.011 seconds
Complete requests: 3707
Failed requests: 0
Write errors: 0
Total transferred: 960890 bytes
HTML transferred: 40810 bytes
Requests per second: 123.52 [#/sec] (mean)
Time per request: 80.956 [ms] (mean)
Time per request: 8.096 [ms] (mean, across all concurrent requests)
Transfer rate: 31.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.7 0 60
Processing: 15 81 45.9 77 323
Waiting: 0 62 39.4 55 289
Total: 15 81 46.0 77 323
Percentage of the requests served within a certain time (ms)
50% 77
66% 96
75% 109
80% 118
90% 142
95% 164
98% 188
99% 207
100% 323 (longest request)
~~~ Testing Symfony 1.2.2 : http://localhost/phpmark-read-only/symfony-1.2.2/web/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php
Document Length: 541 bytes
Concurrency Level: 10
Time taken for tests: 30.009 seconds
Complete requests: 2824
Failed requests: 0
Write errors: 0
Total transferred: 2232540 bytes
HTML transferred: 1528866 bytes
Requests per second: 94.10 [#/sec] (mean)
Time per request: 106.265 [ms] (mean)
Time per request: 10.627 [ms] (mean, across all concurrent requests)
Transfer rate: 72.65 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 4.2 0 79
Processing: 19 106 46.4 104 291
Waiting: 0 87 43.3 84 271
Total: 19 106 46.4 105 291
Percentage of the requests served within a certain time (ms)
50% 105
66% 122
75% 133
80% 142
90% 166
95% 189
98% 212
99% 226
100% 291 (longest request)
~~~ Testing Yii 1.0.6 with yiilite : http://localhost/phpmark-read-only/yii-1.0.6/index2.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/yii-1.0.6/index2.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.001 seconds
Complete requests: 15823
Failed requests: 0
Write errors: 0
Total transferred: 4099452 bytes
HTML transferred: 174108 bytes
Requests per second: 527.42 [#/sec] (mean)
Time per request: 18.960 [ms] (mean)
Time per request: 1.896 [ms] (mean, across all concurrent requests)
Transfer rate: 133.44 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 8
Processing: 3 19 18.7 13 241
Waiting: 0 10 11.9 6 241
Total: 3 19 18.7 13 241
Percentage of the requests served within a certain time (ms)
50% 13
66% 20
75% 26
80% 30
90% 43
95% 57
98% 72
99% 84
100% 241 (longest request)
~~~ Testing Zend 1.8.2 : http://localhost/phpmark-read-only/zend-1.8.2/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/zend-1.8.2/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.003 seconds
Complete requests: 7295
Failed requests: 0
Write errors: 0
Total transferred: 1890182 bytes
HTML transferred: 80278 bytes
Requests per second: 243.14 [#/sec] (mean)
Time per request: 41.128 [ms] (mean)
Time per request: 4.113 [ms] (mean, across all concurrent requests)
Transfer rate: 61.52 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 8
Processing: 7 41 30.0 34 233
Waiting: 7 29 24.3 22 229
Total: 7 41 30.0 34 233
Percentage of the requests served within a certain time (ms)
50% 34
66% 48
75% 57
80% 64
90% 82
95% 99
98% 119
99% 134
100% 233 (longest request)
Detalles Resultados sin APC
~~~ Testing KumbiaPHP 1.0 : http://localhost/phpmark-read-only/spirit/app/public/hola_mundo
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/spirit/app/public/hola_mundo
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 30.001 seconds
Complete requests: 7738
Failed requests: 0
Write errors: 0
Total transferred: 3554037 bytes
HTML transferred: 77430 bytes
Requests per second: 257.92 [#/sec] (mean)
Time per request: 38.771 [ms] (mean)
Time per request: 3.877 [ms] (mean, across all concurrent requests)
Transfer rate: 115.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 21
Processing: 7 39 33.7 29 312
Waiting: 7 26 26.7 15 296
Total: 7 39 33.7 29 312
Percentage of the requests served within a certain time (ms)
50% 29
66% 44
75% 55
80% 63
90% 85
95% 103
98% 131
99% 152
100% 312 (longest request)
~~~ Testing kohana v2.3.4 : http://localhost/phpmark-read-only/kohana/index.php/hola
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/kohana/index.php/hola
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 30.003 seconds
Complete requests: 3596
Failed requests: 0
Write errors: 0
Total transferred: 928800 bytes
HTML transferred: 36000 bytes
Requests per second: 119.85 [#/sec] (mean)
Time per request: 83.435 [ms] (mean)
Time per request: 8.343 [ms] (mean, across all concurrent requests)
Transfer rate: 30.23 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 1.4 0 34
Processing: 15 83 39.5 81 283
Waiting: 0 70 37.0 68 248
Total: 16 83 39.5 81 283
Percentage of the requests served within a certain time (ms)
50% 81
66% 95
75% 107
80% 115
90% 136
95% 154
98% 175
99% 188
100% 283 (longest request)
~~~ Testing CakePHP 1.2.3 : http://localhost/phpmark-read-only/cake_1.2.3.8166/index.php/benchmark
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/cake_1.2.3.8166/index.php/benchmark
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.008 seconds
Complete requests: 1054
Failed requests: 0
Write errors: 0
Total transferred: 457248 bytes
HTML transferred: 11616 bytes
Requests per second: 35.12 [#/sec] (mean)
Time per request: 284.705 [ms] (mean)
Time per request: 28.471 [ms] (mean, across all concurrent requests)
Transfer rate: 14.88 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 16.7 0 202
Processing: 56 281 97.4 270 1272
Waiting: 7 258 97.0 247 1084
Total: 70 283 96.9 270 1272
Percentage of the requests served within a certain time (ms)
50% 270
66% 299
75% 315
80% 330
90% 376
95% 421
98% 518
99% 615
100% 1272 (longest request)
~~~ Testing CodeIgniter 1.7.0 : http://localhost/phpmark-read-only/codeigniter-1.7.0/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/codeigniter-1.7.0/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.006 seconds
Complete requests: 4151
Failed requests: 0
Write errors: 0
Total transferred: 1076145 bytes
HTML transferred: 45705 bytes
Requests per second: 138.34 [#/sec] (mean)
Time per request: 72.286 [ms] (mean)
Time per request: 7.229 [ms] (mean, across all concurrent requests)
Transfer rate: 35.02 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 14 72 39.9 69 272
Waiting: 14 57 34.3 51 253
Total: 14 72 39.9 69 272
Percentage of the requests served within a certain time (ms)
50% 69
66% 85
75% 96
80% 104
90% 127
95% 144
98% 165
99% 182
100% 272 (longest request)
~~~ Testing Prado 3.1.3 : http://localhost/phpmark-read-only/prado-3.1.3/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/prado-3.1.3/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.015 seconds
Complete requests: 932
Failed requests: 0
Write errors: 0
Total transferred: 241647 bytes
HTML transferred: 10263 bytes
Requests per second: 31.05 [#/sec] (mean)
Time per request: 322.052 [ms] (mean)
Time per request: 32.205 [ms] (mean, across all concurrent requests)
Transfer rate: 7.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 107 320 69.8 313 647
Waiting: 89 297 74.3 295 647
Total: 107 320 69.8 313 647
Percentage of the requests served within a certain time (ms)
50% 313
66% 340
75% 359
80% 369
90% 400
95% 433
98% 501
99% 547
100% 647 (longest request)
~~~ Testing Symfony 1.2.2 : http://localhost/phpmark-read-only/symfony-1.2.2/web/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php
Document Length: 541 bytes
Concurrency Level: 10
Time taken for tests: 30.002 seconds
Complete requests: 842
Failed requests: 0
Write errors: 0
Total transferred: 665180 bytes
HTML transferred: 455522 bytes
Requests per second: 28.07 [#/sec] (mean)
Time per request: 356.313 [ms] (mean)
Time per request: 35.631 [ms] (mean, across all concurrent requests)
Transfer rate: 21.65 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 71 354 72.4 351 708
Waiting: 55 334 76.3 329 708
Total: 71 354 72.4 351 708
Percentage of the requests served within a certain time (ms)
50% 351
66% 374
75% 391
80% 403
90% 435
95% 474
98% 533
99% 590
100% 708 (longest request)
~~~ Testing Yii 1.0.6 : http://localhost/phpmark-read-only/yii-1.0.6/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/yii-1.0.6/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.001 seconds
Complete requests: 3284
Failed requests: 0
Write errors: 0
Total transferred: 850815 bytes
HTML transferred: 36135 bytes
Requests per second: 109.46 [#/sec] (mean)
Time per request: 91.355 [ms] (mean)
Time per request: 9.136 [ms] (mean, across all concurrent requests)
Transfer rate: 27.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 2.4 0 50
Processing: 17 91 42.8 88 267
Waiting: 0 75 39.3 72 253
Total: 17 91 42.7 88 267
Percentage of the requests served within a certain time (ms)
50% 88
66% 104
75% 116
80% 125
90% 147
95% 167
98% 193
99% 218
100% 267 (longest request)
~~~ Testing Yii 1.0.6 with yiilite : http://localhost/phpmark-read-only/yii-1.0.6/index2.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/yii-1.0.6/index2.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.005 seconds
Complete requests: 1911
Failed requests: 0
Write errors: 0
Total transferred: 495467 bytes
HTML transferred: 21043 bytes
Requests per second: 63.69 [#/sec] (mean)
Time per request: 157.013 [ms] (mean)
Time per request: 15.701 [ms] (mean, across all concurrent requests)
Transfer rate: 16.13 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 30 156 63.3 153 423
Waiting: 30 133 60.0 132 386
Total: 30 156 63.3 153 423
Percentage of the requests served within a certain time (ms)
50% 153
66% 173
75% 188
80% 201
90% 243
95% 275
98% 306
99% 329
100% 423 (longest request)
~~~ Testing Zend 1.8.2 : http://localhost/phpmark-read-only/zend-1.8.2/index.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.2.11
Server Hostname: localhost
Server Port: 80
Document Path: /phpmark-read-only/zend-1.8.2/index.php
Document Length: 11 bytes
Concurrency Level: 10
Time taken for tests: 30.027 seconds
Complete requests: 1647
Failed requests: 0
Write errors: 0
Total transferred: 427091 bytes
HTML transferred: 18139 bytes
Requests per second: 54.85 [#/sec] (mean)
Time per request: 182.313 [ms] (mean)
Time per request: 18.231 [ms] (mean, across all concurrent requests)
Transfer rate: 13.89 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 35 182 63.2 177 432
Waiting: 35 161 62.2 157 383
Total: 35 182 63.2 177 432
Percentage of the requests served within a certain time (ms)
50% 177
66% 198
75% 214
80% 223
90% 257
95% 300
98% 347
99% 371
100% 432 (longest request)
Código Utilizado
KumbiaPHP
Para KumbiaPHP Framework en su version 1.0 Spirit
<?php
class HolaMundoController extends ApplicationController
{
public $template = null;
public function index()
{
$this->render(null);
echo 'Hola Mundo';
}
}CakePHP
Para CakePHP en su version 1.2.3 se utilizo el siguiente código
<?php
class BenchmarkController extends AppController {
var $helpers = null; //Because the 'Html' and 'Form' helpers are enabled by default
var $uses = array();
var $components = array();
var $layout = null;
var $autoLayout = false;
var $autoRender = false;
function index() {
echo "Hello World";
}
}
?>Kohana
Para Kohana en su version 2.3.4 se utilizo el siguiente código
<?php defined('SYSPATH') OR die('No direct access allowed.');
class Hola_Controller extends Controller
{
public function index()
{
echo "Hola Mundo";
}
}
?>Symfony
Para Symfony en su version 1.2.2 se utilizo el siguiente código.
<?php
/**
* content actions.
*
* @package sf_sandbox
* @subpackage content
* @author Your name here
* @version SVN: $Id: actions.class.php 9301 2008-05-27 01:08:46Z dwhittle $
*/
class contentActions extends sfActions
{
/**
* Executes index action
*
* @param sfRequest $request A request object
*/
public function executeIndex($request)
{
echo 'hello world';
}
}Zend Framework
Para Zend Framework en su version 1.8.2 se utilizo el siguiente código
<?php
require_once 'Zend/Controller/Action.php';
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
Zend_Controller_Action_HelperBroker::removeHelper('ViewRenderer');
echo( 'hello world');
}
}Yii Framework
Para Yii Framework en su version 1.0.6 se utilizo el siguiente código
<?php
/**
* SiteController is the default controller to handle user requests.
*/
class SiteController extends CController
{
/**
* Index action is the default action in a controller.
*/
public function actionIndex()
{
echo 'Hello World';
}
}CodeIgniter
Para CodeIgniter en su version 1.7.0 se utilizo el siguiente código
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
}
function index()
{
echo 'hello world';
}
}Prado
Para Prado en su version 3.1.3 se utilizo el siguiente código
<?php
require_once(dirname(__FILE__).'/framework/prado.php');
$application=new TApplication;
$application->run();
hello world