How caching can speed up your application
The cache system is being optimized and refactored. It is not completely finished yet, but our tests are encouraging. We measured the time necessary to render the weblog post list with the latest alpha, using various cache settings. It is a good example of a page with some database queries. Here is a glimpse of the average results:
- Without cache: 113ms
- With action cache: 32ms
- With page cache: 14ms
- With the sfSuperCachePlugin: 1.2ms
On our test server (not as fast as a production server), an empty "Hello, world!" page takes about 12ms to render.
Not all pages can be put in cache, of course, but removing the load of these pages from the server gives it more CPU to deal with the others.
And, regardless of any cache, the latest alpha is between 30% and 300% faster than the 0.6.3, depending on the complexity of your application. We'll publish some more metrics as soon as it is stable enough.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.