[TYPO3-dev] Speeded up TYPO3 by 500% :)

Bernhard Kraft kraftb at kraftb.at
Sat Jun 24 05:51:32 CEST 2006


Hello boys and girls,


I tried it already in 5 different variants during the last year but this
time I think I got it ...

Have a look at the following ab2 (apache benchmark) outputs:

without patch:
----------------------------
Total transferred:      8575500 bytes
HTML transferred:       8453000 bytes
Requests per second:    6.22 [#/sec] (mean)
Time per request:       1608.322 [ms] (mean)
Time per request:       160.832 [ms] (mean, across all concurrent requests)
Transfer rate:          104.13 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  221 326.2      0    1161
Processing:   221 1301 2173.7    727   16568
Waiting:        0 1180 2125.9    588   16328
Total:        227 1523 2166.7   1058   16568
--------------------


with patch:
--------------------------------
Concurrency Level:      10
Time taken for tests:   1.606190 seconds
Complete requests:      500
Failed requests:        460
   (Connect: 0, Length: 460, Exceptions: 0)
Write errors:           0
Total transferred:      8704122 bytes
HTML transferred:       8579400 bytes
Requests per second:    311.30 [#/sec] (mean)
Time per request:       32.124 [ms] (mean)
Time per request:       3.212 [ms] (mean, across all concurrent requests)
Transfer rate:          5292.03 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    5   4.5      6      19
Processing:    11   24   5.3     25      81
Waiting:        0    8   5.9      6      68
Total:         17   30   5.8     31      85
-----------------------------------


You see that the "Requests per second" is about 500% higher than normal.


I achieved this by creating a "stripped down" (no included files) index.php
which checks if there is a cache-file for the current requested page. if it finds
one it checks if it's still not expired and if it's valid it simply outputs and
exits.

It is not compatible with any FE-User login currently and if you view the pages
as logged in BE-User you will also get no "quick-index".

But for simple sites without any FE-Users you get a lot of speed improvement.



A T3X for download is here:
http://think-open.org/kraftb/index/T3X_kb_quickindex-0_0_0.t3x



Currently it will only run under UNIX cause I use "rm -rf" to quickly remove the cache
directories when the "clear cache" button is hit in the BE (see class.tx_kbquickindex_tcemain.php)


See "README" file in extension directory for more information.



I would be glad if somebody having a running PHP-accelerator setup could test it on his machine ...


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]




More information about the TYPO3-dev mailing list