opcode cache benefits quantified?

Discussion in 'PHP' started by jrmarino, Apr 13, 2007.

  1. jrmarino

    jrmarino New Member

    During my first litespeed server installation, I was asked some questions about php opcode caching. I wasn't sure what it was at the time, so I skipped it.

    I saw a couple of posts on this site that say pear's "APC" is highly recommended for PHP intensive sites (like mine), that it is stable, and that it works on multiple core processors.

    What I did not see is any kind of expected improvements. For example, I've seen in many places that LSAPI shows a 30% improvement for a "hello world" PHP program.

    What exactly is opcode caching doing (perhaps caching compiled versions of the script?) and what kind of performance boost is typical? Has this been quantified anywhere? Benchmarks anywhere? It works on both fastcgi and lsapi versions of PHP? Maybe I'm missing all this stuff, but this particular area doesn't seem to have much documentation.
  2. mistwang

    mistwang LiteSpeed Staff

    Yes, opcode cache caches compiled PHP scripts, so there is no need to compile the script again and again.
    The real world improvment is depends on how complicate the PHP script is.
    The most common opcode caches are "APC" and "eAccelerator" now. Google on those key words can give you more information on this topic, including some benchmark results. :)

Share This Page