https://wiki.kumbiaphp.com/api.php?action=feedcontributions&user=Brianpalmer2010&feedformat=atom
KumbiaPHP Framework Wiki - Contribuciones del usuario [es]
2024-03-28T17:34:39Z
Contribuciones del usuario
MediaWiki 1.34.1
https://wiki.kumbiaphp.com/index.php?title=KumbiaPHP_Framework_Benchmark&diff=3157
KumbiaPHP Framework Benchmark
2011-05-09T09:55:51Z
<p>Brianpalmer2010: </p>
<hr />
<div>==Version 1.0 Spirit pre beta vs (Symfony, Zend, CakePHP)==<br />
Comenzamos a publicar una serie de Benchmark que hemos realizado a la version 1.0 Spirit vs (Symfony, Zend y CakePHP), 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.<br />
<br />
Seguimos trabajando para mejorar más la velocidad antes de la versión final <span class="plainlinks">[http://www.merchantos.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">pos systems</span>]. Además de velocidad, se han hecho cambios para que también sea todavía más fácil y rápido su uso, al facilitar el reuso de código en diferentes partes y que se podrán compartir con la comunidad.<br />
<br />
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 [http://www.thediamondtrade.com/ sell a diamond] 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 llamar a una vista. Esto nos muestra el máximo rendimiento posible, añadiendo código sólo reducirá la respuesta.<br />
<br />
Cada Benchmark de los Framework’s usa los siguientes scripts o equivalentes…<br />
<br />
* Bootstrap.<br />
* Configuración por defecto.<br />
* Front-controller ó dispatcher.<br />
* Page-controller ó action-controller.<br />
* Una acción sin código, otras que invocan una vista.<br />
* Vista estática con solo “Hello World!”.<br />
<br />
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, sin APC. El comando es así:<br />
<br />
<pre>ab -c 10 -t 60 http://localhost/[path]</pre><br />
<br />
==Servidor==<br />
<br />
* Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz.<br />
* 3GiB Memoria RAM.<br />
* 160GiB Disco Duro.<br />
* Server version: Apache/2.2.11 .<br />
* S.O. Debian Squeeze.<br />
* ApacheBench, Version 2.3.<br />
<br />
==Resultados==<br />
<br />
<pre>Document Path: /phpmark-read-only/baseline/index.html<br />
Requests per second: 2124.27 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/baseline/index.php<br />
Requests per second: 1255.32 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/kumbiaphp-1.0/hola_mundo<br />
Requests per second: 34.07 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/cakephp-1.2.0/benchmark<br />
Requests per second: 15.87 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/cakephp-1.2.1/benchmark<br />
Requests per second: 15.91 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/symfony-1.1.6/web/index.php<br />
Requests per second: 12.60 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/symfony-1.2.1/web/index.php<br />
Requests per second: 10.10 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php<br />
Requests per second: 11.55 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/zend-1.6.2/index.php<br />
Requests per second: 23.71 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/zend-1.7.2/index.php<br />
Requests per second: 23.26 [#/sec] (mean)<br />
Document Path: /phpmark-read-only/zend-1.7.3/index.php<br />
Requests per second: 23.50 [#/sec] (mean)</pre><br />
<br />
[http://www.naseya.com/games/car-driving/ car games]<br />
<br />
==Gráfica==<br />
[[Imagen:Benchmark.png|Benchmark Framework KumbiaPHP vs (Symfony, Zend y CakePHP)]]<br />
<br />
==Detalles Resultados==<br />
<pre>~~~ Testing baseline-html : http://localhost/phpmark-read-only/baseline/index.html<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/baseline/index.html<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 23.537 seconds<br />
Complete requests: 50000<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 16602988 bytes<br />
HTML transferred: 550099 bytes<br />
Requests per second: 2124.27 [#/sec] (mean)<br />
Time per request: 4.707 [ms] (mean)<br />
Time per request: 0.471 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 688.85 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 0.9 2 9<br />
Processing: 1 3 0.9 3 118<br />
Waiting: 0 2 0.7 2 22<br />
Total: 1 5 1.1 5 118<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 5<br />
66% 5<br />
75% 5<br />
80% 5<br />
90% 5<br />
95% 5<br />
98% 5<br />
99% 6<br />
100% 118 (longest request)<br />
~~~ Testing baseline-php : http://localhost/phpmark-read-only/baseline/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/baseline/index.php<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.003 seconds<br />
Complete requests: 37663<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 9755494 bytes<br />
HTML transferred: 414326 bytes<br />
Requests per second: 1255.32 [#/sec] (mean)<br />
Time per request: 7.966 [ms] (mean)<br />
Time per request: 0.797 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 317.53 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 3 1.9 4 22<br />
Processing: 1 5 3.4 4 109<br />
Waiting: 0 4 3.1 4 109<br />
Total: 1 8 3.7 9 109<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 9<br />
66% 9<br />
75% 9<br />
80% 9<br />
90% 9<br />
95% 9<br />
98% 13<br />
99% 21<br />
100% 109 (longest request)<br />
~~~ Testing kumbiaphp 1.0 : http://localhost/phpmark-read-only/kumbiaphp-1.0/hola_mundo<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/kumbiaphp-1.0/hola_mundo<br />
Document Length: 10 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.027 seconds<br />
Complete requests: 1023<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 469557 bytes<br />
HTML transferred: 10230 bytes<br />
Requests per second: 34.07 [#/sec] (mean)<br />
Time per request: 293.514 [ms] (mean)<br />
Time per request: 29.351 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 15.27 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 1 10.1 0 133<br />
Processing: 56 291 82.4 282 689<br />
Waiting: 55 268 84.0 261 689<br />
Total: 67 292 81.9 283 689<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 283<br />
66% 309<br />
75% 329<br />
80% 343<br />
90% 384<br />
95% 436<br />
98% 535<br />
99% 598<br />
100% 689 (longest request)<br />
~~~ Testing CakePHP 1.2.0 : http://localhost/phpmark-read-only/cakephp-1.2.0/benchmark<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/cakephp-1.2.0/benchmark<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.063 seconds<br />
Complete requests: 477<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 123543 bytes<br />
HTML transferred: 5247 bytes<br />
Requests per second: 15.87 [#/sec] (mean)<br />
Time per request: 630.255 [ms] (mean)<br />
Time per request: 63.026 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 4.01 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 0 2.9 0 37<br />
Processing: 161 623 94.1 621 972<br />
Waiting: 147 605 98.0 607 949<br />
Total: 178 623 93.9 622 972<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 621<br />
66% 653<br />
75% 674<br />
80% 688<br />
90% 732<br />
95% 768<br />
98% 849<br />
99% 896<br />
100% 972 (longest request)<br />
~~~ Testing CakePHP 1.2.1 : http://localhost/phpmark-read-only/cakephp-1.2.1/benchmark<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/cakephp-1.2.1/benchmark<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.098 seconds<br />
Complete requests: 479<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 124061 bytes<br />
HTML transferred: 5269 bytes<br />
Requests per second: 15.91 [#/sec] (mean)<br />
Time per request: 628.349 [ms] (mean)<br />
Time per request: 62.835 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 4.03 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 13.6 0 109<br />
Processing: 188 619 93.1 621 982<br />
Waiting: 188 602 99.7 608 973<br />
Total: 272 621 91.2 621 982<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 621<br />
66% 658<br />
75% 678<br />
80% 692<br />
90% 731<br />
95% 763<br />
98% 821<br />
99% 841<br />
100% 982 (longest request)<br />
~~~ Testing Symfony 1.1.6 : http://localhost/phpmark-read-only/symfony-1.1.6/web/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/symfony-1.1.6/web/index.php<br />
Document Length: 541 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.150 seconds<br />
Complete requests: 380<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 375820 bytes<br />
HTML transferred: 205580 bytes<br />
Requests per second: 12.60 [#/sec] (mean)<br />
Time per request: 793.432 [ms] (mean)<br />
Time per request: 79.343 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 12.17 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 13.8 0 106<br />
Processing: 388 781 101.8 777 1193<br />
Waiting: 382 765 105.5 762 1177<br />
Total: 495 783 101.7 777 1193<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 777<br />
66% 814<br />
75% 834<br />
80% 848<br />
90% 902<br />
95% 980<br />
98% 1030<br />
99% 1074<br />
100% 1193 (longest request)<br />
~~~ Testing Symfony 1.2.1 : http://localhost/phpmark-read-only/symfony-1.2.1/web/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/symfony-1.2.1/web/index.php<br />
Document Length: 541 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.105 seconds<br />
Complete requests: 304<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 240160 bytes<br />
HTML transferred: 164464 bytes<br />
Requests per second: 10.10 [#/sec] (mean)<br />
Time per request: 990.280 [ms] (mean)<br />
Time per request: 99.028 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 7.79 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 3 20.7 0 175<br />
Processing: 703 974 142.6 949 1841<br />
Waiting: 667 958 141.9 938 1807<br />
Total: 703 977 150.6 951 2015<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 951<br />
66% 1005<br />
75% 1037<br />
80% 1072<br />
90% 1156<br />
95% 1251<br />
98% 1297<br />
99% 1453<br />
100% 2015 (longest request)<br />
~~~ Testing Symfony 1.2.2 : http://localhost/phpmark-read-only/symfony-1.2.2/web/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/symfony-1.2.2/web/index.php<br />
Document Length: 541 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.042 seconds<br />
Complete requests: 347<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 274130 bytes<br />
HTML transferred: 187727 bytes<br />
Requests per second: 11.55 [#/sec] (mean)<br />
Time per request: 865.769 [ms] (mean)<br />
Time per request: 86.577 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 8.91 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 17.8 0 155<br />
Processing: 475 855 106.2 856 1232<br />
Waiting: 473 839 109.8 840 1232<br />
Total: 544 857 108.1 857 1250<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 856<br />
66% 895<br />
75% 912<br />
80% 932<br />
90% 984<br />
95% 1026<br />
98% 1137<br />
99% 1219<br />
100% 1250 (longest request)<br />
~~~ Testing Zend 1.6.2 : http://localhost/phpmark-read-only/zend-1.6.2/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/zend-1.6.2/index.php<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.029 seconds<br />
Complete requests: 712<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 184408 bytes<br />
HTML transferred: 7832 bytes<br />
Requests per second: 23.71 [#/sec] (mean)<br />
Time per request: 421.757 [ms] (mean)<br />
Time per request: 42.176 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 6.00 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 1 9.2 0 97<br />
Processing: 164 418 81.9 414 805<br />
Waiting: 121 393 83.3 390 797<br />
Total: 164 419 81.3 414 805<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 414<br />
66% 445<br />
75% 463<br />
80% 474<br />
90% 518<br />
95% 557<br />
98% 622<br />
99% 702<br />
100% 805 (longest request)<br />
~~~ Testing Zend 1.7.2 : http://localhost/phpmark-read-only/zend-1.7.2/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/zend-1.7.2/index.php<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.008 seconds<br />
Complete requests: 698<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 180782 bytes<br />
HTML transferred: 7678 bytes<br />
Requests per second: 23.26 [#/sec] (mean)<br />
Time per request: 429.911 [ms] (mean)<br />
Time per request: 42.991 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 5.88 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 12.5 0 131<br />
Processing: 161 425 84.2 417 884<br />
Waiting: 125 402 83.6 395 884<br />
Total: 208 427 83.0 419 884<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 419<br />
66% 446<br />
75% 464<br />
80% 475<br />
90% 514<br />
95% 565<br />
98% 688<br />
99% 753<br />
100% 884 (longest request)<br />
~~~ Testing Zend 1.7.3 : http://localhost/phpmark-read-only/zend-1.7.3/index.php<br />
This is ApacheBench, Version 2.3 <$Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/<br />
<br />
Benchmarking localhost (be patient)<br />
<br />
<br />
Server Software: Apache/2.2.11<br />
Server Hostname: localhost<br />
Server Port: 80<br />
<br />
Document Path: /phpmark-read-only/zend-1.7.3/index.php<br />
Document Length: 11 bytes<br />
<br />
Concurrency Level: 10<br />
Time taken for tests: 30.003 seconds<br />
Complete requests: 705<br />
Failed requests: 0<br />
Write errors: 0<br />
Total transferred: 182595 bytes<br />
HTML transferred: 7755 bytes<br />
Requests per second: 23.50 [#/sec] (mean)<br />
Time per request: 425.573 [ms] (mean)<br />
Time per request: 42.557 [ms] (mean, across all concurrent requests)<br />
Transfer rate: 5.94 [Kbytes/sec] received<br />
<br />
Connection Times (ms)<br />
min mean[+/-sd] median max<br />
Connect: 0 2 17.0 0 185<br />
Processing: 131 421 88.3 415 828<br />
Waiting: 75 398 91.8 393 828<br />
Total: 131 423 86.8 416 828<br />
<br />
Percentage of the requests served within a certain time (ms)<br />
50% 415<br />
66% 446<br />
75% 465<br />
80% 478<br />
90% 519<br />
95% 574<br />
98% 640<br />
99% 752<br />
100% 828 (longest request)<br />
</pre><br />
<br />
==Código Utilizado==<br />
<br />
===KumbiaPHP===<br />
Para KumbiaPHP Framework en su version 1.0 Spirit<br />
<pre><?php<br />
class HolaMundoController extends ApplicationController<br />
{<br />
public $template = null; <br />
public function index()<br />
{<br />
$this->render(null);<br />
echo 'Hola Mundo';<br />
}<br />
}</pre><br />
<br />
===CakePHP===<br />
Para CakePHP en sus versiones 1.2.0; 1.2.1 se utilizo el siguiente código<br />
<pre><?php<br />
class BenchmarkController extends AppController {<br />
var $helpers = null; //Because the 'Html' and 'Form' helpers are enabled by default<br />
var $uses = array();<br />
var $components = array();<br />
var $layout = null;<br />
var $autoLayout = false;<br />
var $autoRender = false;<br />
<br />
<br />
function index() {<br />
echo 'Hello World';<br />
}<br />
}<br />
<br />
?></pre><br />
<br />
===Symfony===<br />
Para Symfony en sus versiones 1.1.6, 1.2.1 y 1.2.2.<br />
<br />
<pre><?php<br />
<br />
/**<br />
* content actions.<br />
*<br />
* @package sf_sandbox<br />
* @subpackage content<br />
* @author Your name here<br />
* @version SVN: $Id: actions.class.php 9301 2008-05-27 01:08:46Z dwhittle $<br />
*/<br />
class contentActions extends sfActions<br />
{<br />
/**<br />
* Executes index action<br />
*<br />
* @param sfRequest $request A request object<br />
*/<br />
public function executeIndex($request)<br />
{<br />
echo 'hello world';<br />
}<br />
}</pre><br />
<br />
===Zend Framework===<br />
Para Zend Framework en sus versiones 1.6.2, 1.7.2 y 1.7.3<br />
<br />
<pre><?php<br />
require_once 'Zend/Controller/Action.php';<br />
class IndexController extends Zend_Controller_Action<br />
{<br />
public function indexAction()<br />
{<br />
Zend_Controller_Action_HelperBroker::removeHelper('ViewRenderer');<br />
echo( 'hello world');<br />
}<br />
}</pre><br />
<br />
<br />
[[Categoría:PHP Framework Benchmarks]]</div>
Brianpalmer2010