PHP accelerator

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

A PHP accelerator is a PHP extension designed to improve the performance of software applications written in the PHP programming language.

Operation

edit edit source

Most PHP accelerators work by caching the compiled opcode/bytecode of PHP representation of php files to avoid the overhead of parsing and compiling source code on each request (some or even most of which may never be executed). To further improve performance, the cached code is stored in shared memory and directly executed from there, minimizing the amount of slow disk reads and memory copying at runtime.

Practical benefits

edit edit source

PHP accelerators substantially increase the speed of PHP applications. Improvements of web page generation throughput by factors of two to seven have been observed.[1][2][3]

The effect on application performance of opcode caching varies widely, 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, and whether additional optimization steps are performed. 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 bytecode cache, as the optimization effort is performed just once.

See also

edit edit source

References

edit edit source
  1. ^ "PHP on Windows: The WinCache 1.0 Benchmark". Retrieved 2 September 2010.{{cite web}}: CS1 maint: deprecated archival service (link)
  2. ^ "Benchmarking Drupal with PHP op-code caches: APC, eAccelerator and XCache compared". Retrieved 2 September 2010.
  3. ^ "Performance of Yii". Archived from the original on 19 August 2010. Retrieved 2 September 2010.
edit edit source PHPPeople Resources Implementations Web frameworks Testing ORMs IDEs Widget toolkit Related

Text derived from https://en.wikipedia.org/w/index.php?oldid=1334540461 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

3 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.