Asked 7 years ago
30 Dec 2016
Views 4648
yogi

yogi posted

OpCache VS XCache

website's some page load very slower , made with PHP and trying to make it faster. so decide to go with cache but now confuse that which one is more good : OpCache or XCache .
OpCache or XCache which one give me more good faster pages and ease of code also .
OpCache VS XCache , pros and cons of the OpCache and XCache
Phpworker

Phpworker
answered Nov 30 '-1 00:00

as per one survey where XCache and OpCache tested with differ php application . measured CPU load and memory usage .
XCache used same as CPU and memory usage as no cache Application. so there is no noticeable speed found by using XCache
where OpCache used 30% less CPU and memory than normal web application . which really great , so i give thumbs up to OpCache .

how can one prove that XCache using more CPU and memory .and OpCache do less . so is that any proof of it ? - Rasi  
Jan 6 '17 04:46
use tester :: https://github.com/rlerdorf/opcache-status check here . or try to use OpCache and Xcache with sample web application or CMS , and see the result - Phpworker  
Jan 6 '17 04:56
ravi

ravi
answered Nov 30 '-1 00:00

OpCache is good

OpCache is use shared memory to save precomplied bytecode and use it when request happen so it help to skip load and parse time for each request and result is more faster PHP execution.

OpCache is part of PHP since PHP 5.5

OpCache is more good than XCache , more faster than XCache .
Rasi

Rasi
answered Nov 30 '-1 00:00

XCache official website says ::

XCache optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduces serverload.

it means
It once complied code and re use it for all subsequent request



OpCache run on same philosophy

YES i did not believe that first OpCache is good but i find some good resource says that OpCache is better than XCache and APC , those resource are
http://fideloper.com/install-zend-opcache
http://massivescale.blogspot.in/2013/06/php-55-zend-optimiser-opcache-vs-xcache.html

Some says XCache has good GUI for monitor background process and performance but i found some OpCache GUI also
OpCacheGUI and ocp to monitor your website performance.

so i giving thumbs up to OpCache over XCache
Post Answer