APC VS eAccelerator VS XCache 速度比较
图中可以看到:APC,XCache,eAccelerator 的测试数据,相对来说 XCache 表现最好,但是每个加速器都有各种微调参数,具体视部署环境而定。
版本存活状态
(截取自:http://en.wikipedia.org/wiki/List_of_PHP_accelerators) Alternative PHP Cache (APC)
Alternative PHP Cache is a free, open source (PHP license) framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory.
Website: http://pecl.php.net/package/APC
PHP version: works with all PHP versions including PHP 5.2-5.4 (3.1.10 - beta release) (not PHP 5.0)
Download link for Windows: http://downloads.php.net/pierre/ (provides some of the PECL extensions, previously available on pecl4win)
Official installation help: http://php.net/apc.setup
eAccelerator
eAccelerator was born in December 2004 as a fork of the Turck MMCache project. Turck MMCache was created by Dmitry Stogov and much of the eAccelerator code is still based on his work. eAccelerator also contained a PHP encoder and loader, but the development staff discontinued the encoder and removed this feature after December 2006.
Website: http://eaccelerator.net/
PHP version: Supports PHP 4 and all PHP 5 thread-safe releases including 5.3 from version 0.9.6; breaks on 5.4. In older releases, the encoder will only work with PHP versions from the 4.x.x branch. eAccelerator will not work with any other versions of PHP. eAccelerator can only be used with the thread-safe version of PHP. (This seems not to be true, this version works for my php non-thread-safe installation: http://eac.qme.nl/eAccelerator_v1_0_svn427_for_v5_3_X-VC9.zip)
Latest stable version: 0.9.6.1 (2010-05-31)
Status: Potentially dead (no new releases since May 2010). UPDATE from eaccelerator.net: 25 Jul 2012 - Project was taken by Hans Rakers and moved to Github, master branch does support PHP 5.4
Download link: (look for latest versions) http://eaccelerator.net/, download page on SourceForge
Official installation help: https://eaccelerator.net/wiki/InstallFromSource
XCache XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It is tested on Linux and FreeBSD and supported under Windows, for thread-safe and non-thread-safe versions of PHP. This relatively new opcode caching software has been developed by mOo, one of developers of Lighttpd, to overcome some of the limitations of the existing solutions at that time; such as being able to use it with new PHP versions as they arrive.
Website: http://xcache.lighttpd.net/
PHP version: full support for PHP 5.4
Latest stable version: 2.0.1 (Released on 2012-07-14)