[TYPO3-dev] Testing TYPO3 caching vs. [FE][pageCacheToExternalFiles]
Michael Scharkow
mscharkow at gmx.net
Wed Apr 12 10:58:36 CEST 2006
Dmitry Dulepov wrote:
> 1. Should not be the case on Linux, file will be in OS buffers already.
> 2. If I request static file (test.txt, couple of kilobytes), I get over
> 1000 rq/s, if I request typo3 static page I get around 9. See the
> difference?
You can easily test how much overhead calling PHP is if you simply test
a PHP script that does *nothing* but sending a file to the browser.
<?php
readfile('test.txt');
?>
I get around 10 times (!) more req/s for the above compared to plain
TYPO3 3.8 with only hello world content. (590 vs 56 req/s).
So there should be enormous possibilities of just serving cached files
from the filesystem, but this has to be done at a most early stage
because otherwise TYPO3 eats all performance. Since we're faced with
some variables (fe user logged in, maybe browser conditions), a simple
solution would be to simply hash the request URL with some notorious
parameters (set in localconf.php), and send a file with name=hash.
This architecture would scale really well because you could
transparently change to memcached or whatever.
Greetings,
Michael
More information about the TYPO3-dev
mailing list