phpcachingzend-optimizer

Is using PHP accelerators such as MMCache or Zend Accelerator making PHP faster?


Does anybody have experience working with PHP accelerators such as MMCache or Zend Accelerator? I'd like to know if using either of these makes PHP comparable to faster web-technologies. Also, are there trade offs for using these?


Solution

  • Note that Zend Optimizer and MMCache (or similar applications) are totally different things. While Zend Optimizer tries to optimize the program opcode MMCache will cache the scripts in memory and reuse the precompiled code.

    I did some benchmarks some time ago and you can find the results in my blog (in German though). The basic results:

    Zend Optimizer alone didn't help at all. Actually my scripts were slower than without optimizer.

    When it comes to caches: * fastest: eAccelerator * XCache * APC

    And: You DO want to install a opcode cache!

    For example: alt text http://blogs.interdose.com/dominik/wp-content/uploads/2008/04/opcode_wordpress.png

    This is the duration it took to call the wordpress homepage 10.000 times.

    Edit: BTW, eAccelerator contains an optimizer itself.