PHP accelerator

From Wikipedia, the free encyclopedia

Jump to: navigation, search

A PHP accelerator is an extension designed to boost the performance of software applications written using the PHP programming language. Most PHP accelerators work by caching the compiled bytecode of PHP scripts to avoid the overhead of parsing and compiling source code on each request (some or all of which may never even be executed). For best performance, caching is to shared memory with direct execution from the shared memory and the minimum of memory copying at runtime. A PHP accelerator typically reduces server load and increases the speed of PHP code anywhere from 2-10 times, depending on factors such as the inherent execution time of the PHP application and the percentage of source code actually executed on a given request. While a code optimizer may even slow down overall performance when used in isolation, it can provide an additional performance boost when coupled with a code cache as the optimization effort is performed just once.

Contents

[edit] List of PHP accelerators

[edit] Alternative PHP Cache

Alternative PHP Cache (APC) is a free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory.

[edit] 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.

  • Home Page: http://eaccelerator.net/
  • PHP version: Supports PHP 4 and all PHP 5 thread-safe releases including 5.2. 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.
  • Latest stable version: 0.9.5.3 (2008-05-18)
  • Status: Actively maintained
  • Download link: (look for latest versions) http://eaccelerator.net/
  • Official installation help: http://eaccelerator.net/wiki/InstallFromSource

[edit] 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. ThreadSafe/Windows is also supported. It is designed to overcome a lot of problems that have been seen with other competing opcachers, such as being able to be used with new PHP versions. New kid on the block developed by mOo who is also one of developers of Lighttpd. Developed to overcome some of the limitations of the existing solutions at that time.

[edit] Zend Optimizer

Zend Optimizer is a closed source solution. It is not an accelerator in the same sense as other entries discussed here as it does not contain code caching. It does contain a code optimizer that will generally speed execution in some cases. While heavily execution bound scripts may show a measurable speed increase, real world applications may not show any significant performance improvement as the time taken optimizing scripts may exceed the performance gains[citation needed]. It is useful primarily to run scripts protected by Zend Guard.

[edit] Zend Platform

Zend Platform (formerly Zend Cache and then Zend Accelerator) is a commercial Web Application Server product. It has a complete set of performance capabilities that includes more than a simple PHP accelerator. Features include code caching/acceleration, data caching, content (html output) caching, download optimization and off-line (asynchronous) processing capabilities that can result in significant performance improvements for most PHP applications. It also includes detailed PHP monitoring and root cause analysis support to help in tuning and debugging, session fail-over support for HA (High Availability) needs and other integration capabilities including Java integration.

[edit] ionCube PHP Accelerator

Launched in 2001, ionCube PHP Accelerator (PHPA) was the first freely available PHP performance solution to match the performance of the commercial Zend Cache product and maximize the performance potential of PHP. Created before ionCube Ltd. was founded and at a time when the performance of PHP was regarded as lackluster when compared to other popular web programming languages, PHPA made accelerated PHP available to almost everyone and showed that PHP need not be the laggard in the performance stakes. In response to early concerns raised by Zeev Suraski of Zend Technologies about the effect that an open source rival might have on their commercial alternative, the author of PHPA chose to keep the project closed source. Although closed source, the availability of PHPA on a wide variety of platforms led to its extensive adoption world wide from small sites to Yahoo!. It also inspired the redevelopment of APC to use the shared memory execution techniques that PHPA and Zend Cache had adopted instead of deserialization on each request that incurred performance penalties. Other accelerators such as mmcache subsequently appeared in later years. PHPA is now discontinued and the development of a more advanced replacement has been announced.

Only supports php4.x. No new versions on the download page since Jan. 2003.

[edit] Turck MMCache

Turck MMCache is now discontinued, although it is still widely used.

[edit] Nusphere PhpExpress

PhpExpress is NuSphere's Free PHP accelerator that speeds up the execution of regular PHP files and also provides support for loading of PHP files encoded with Nu-Coder - NuSphere PHP Encoder. PhpExpress loads encoded PHP scripts directly into PHP engine saving time and boosting performance of PHP interpreter. PhpExpress also implements caching for PHP engine and accelerates execution process even if PHP Script is not encoded. It's available on Windows, Linux, FreeBSD, NetBSD, Mac OS, and Sun Solaris.

[edit] External links

Personal tools