Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Just wondering if theres any performance benefits for using something like APC over eAccelerator (for PHP) on a shared environment.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Not sure about in replacement of eAccelerator, but generally APC is better to use than eAccelerator as it is more actively developed than the latter and has a much better release cycle. Also it's probably worth pointing out that APC will be integrated as part of the core of PHP with the forthcoming PHP6 (though you'll still have to explicitly enable it in the php.ini file.) which fairly biases my mind towards it as well.

share|improve this answer

It's difficult to quantise the benefit that opcode caching will bring you without knowing much about your environment and code. Generally speaking though, you will see a performance increase of somewhere between a little and a lot, for what is very trouble on your part. So give it a go and observe your metrics.

There is a pretty good statistical comparison of opcode caches over at Stackoverflow. As you'll see from the results; APC is often pipped to the post by eAccelerator in terms of performance. However performance isn't everything. APC is easy to install, configure and has good future backing - frequent releases and adoption into the PHP codebase.

Personally I use APC wherever possible.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.