This is my result with the native index.php from Smarty package :
line command for test :
ab -v "Accept-Encoding: gzip, deflate" -n 100 -c 5 http://localhost/smarty/index.php
Configuration :
Athlon 1Ghz
128 Mo
Apache 1.3.22
PHP 4.0.6
With Smarty only without cache
Time for tests - Requests per second - Time per request - Transfer rate 12.338 8.11 616.90 463.29
12.625 7.92 631.25 453.40
12.177 8.21 608.85 465.83
12.289 8.14 614.42 484.86
12.705 7.87 635.25 444.15
With Smarty without cache and jpcache (cachetimeout : 100)
4.112 24.32 205.60 1345.94
3.898 25.65 194.90 1419.83
4.071 24.56 203.55 1386.68
3.985 25.09 203.55 1386.68
3.992 25.05 199.60 1427.99
With Smarty $smarty->caching=on,$smarty->compile_check = false;
$smarty->debugging = false;
6.467 15.46 323.35 812.05
6.155 16.25 307.75 846.11
6.564 15.23 328.20 805.42
6.403 15.62 320.15 836.12
6.638 15.06 331.90 791.12
With Smarty $caching=on,$smarty->compile_check = false;
$smarty->debugging = false;
0.316 316.46 15.80 87.34
0.291 343.64 14.55 94.85
0.317 315.64 15.85 87.07
0.377 205.25 18.85 73.21
0.346 289.02 17.30 79.77
This last result are strange How explain that ?
I think a optimize and cache system outside Smarty is not really efficient...
However, If you see the bench between this several optimizer/cache (same if you can read french, you can see graph and result number ;-) are great on other web site without smarty.
I need to test pjcache VS php-accelerator
Sylvain.B.