5

We're provisioning a new server and are deciding between (php7 / opcache) and (php5.6 / xcache).

We run a few chunky ecommerce sites and want the best possible performance.

I'm looking for comparative results between the two, but cant find any anywhere.

Does anyone have experience in the two side by side?

6
  • 1
    You're probably not going to find many comparisons between the two caches, as they're both going to be quite zippy as memory stores. You will, however, find many PHP5 vs PHP7 benchmarks, and you'll find that PHP7 almost universally sees significant performance increases. Go with PHP7. Commented Apr 8, 2016 at 1:00
  • 1
    Plus, PHP 5.6 will only receive active support for 8 more months (security support's going to last longer, but still). php.net/supported-versions.php Commented Apr 8, 2016 at 1:01
  • I guess the lack of object/session caching in opcache was my main worry. Commented Apr 8, 2016 at 2:26
  • In my experience, that sort of stuff most people are handling via something like Redis now. Commented Apr 8, 2016 at 2:31
  • Yes, go PHP7, if your e-commerce platform supports it. Backend caching can indeed be done with Redis like caching. And use something like Varnish or Nginx to cache output so you don't have to hit PHP and MySQL. And of course, if this choice is mission critical to you, why not spin op some VMs and benchmark yourself? Commented Apr 8, 2016 at 7:39

1 Answer 1

5

In terms of comparative results, Zend Opcache was already better than xcache since php 5.5.

Find a coparison here: http://massivescale.blogspot.ro/2013/06/php-55-zend-optimiser-opcache-vs-xcache.html but you have the graphs below in case reference goes away in time.

So conclusion is: the (slightly) better choice is opcache since php 5.5, and if you add the fact that php 7.x is faster in itself, php 7 + opcache is the way to go without any doubt.

Graphs:

Time graph: less is better

Requests per second graph: more is better

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.