Slashdot Mirror


Benchmarking 3 PHP Accelerators

jfbus writes "PHP, like all scripting languages, suffers from having to parse all script files each time a page is displayed. Accelerators (opcode caches) are necessary to speed PHP enough for large websites. Here is a benchmark of the major PHP accelerators (Zend platform, apc and eAccelerator)."

2 of 81 comments (clear)

  1. Like all scripting languages? by Bogtha · · Score: 3, Informative

    PHP, like all scripting languages, suffers from having to parse all script files each time a page is displayed.

    This isn't something common to all scripting languages. For example, when Python scripts are executed, they are compiled to byte-code, and the result is saved for faster execution next time. Of course, in typical web hosting situations, the web server doesn't have permission to write to the filesystem, but you can quickly and easily compile the bytecode yourself. ASP.NET also compiles once only.

    In fact, I believe it's an oddity of PHP that it needs add-ons in order to do this, and I think the next version of PHP will have fixed this. I don't know where they got the idea that all scripting languages must always parse the script on every invocation.

    --
    Bogtha Bogtha Bogtha
  2. Re:Turck MMCache by hhnerkopfabbeisser · · Score: 3, Informative

    The project died when the developer was hired by Zend. Last Version released in late 2003.

    Reincarnated here: http://eaccelerator.net/