LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > opcode cache benefits quantified?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2007, 05:34 AM
jrmarino jrmarino is offline
Senior Member
 
Join Date: Apr 2007
Posts: 114
Default opcode cache benefits quantified?

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.
Reply With Quote
  #2  
Old 04-13-2007, 09:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
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.
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:57 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.