PHP 5.4 + APC Vs. PHP 5.5 With Built In OPCache - Performance Comparison

Kaustubh Katdare

Kaustubh Katdare

@thebigk Oct 23, 2024
We run a single box setup with PHP 5.4 and considering whether we should upgrade to PHP 5.5 to utilise the built in Zend Optimiser+. There's no clear comparison available for these two setups and I'd really appreciate if CEans can help finding out the best performer among the two. I personally am tempted to upgrade to php 5.5 with a hope that it won't break things.

Will wait for your suggestions.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Apr 28, 2014

    Update: I've enabled PHP 5.5 on CE's servers and the difference is quite astonishing! I'm not sure if you've already noticed - but the page loading times on CE have drastically improved since last few hours; and I'm yet to enable Zend Optimiser+. I wish I had done the tests to log the stats to make a comparative study. Turns out that the Opcache built into PHP 5.5 outperforms PHP 5.4+APC combo.
  • Prasad Ajinkya

    Prasad Ajinkya

    @prasad-aSUfhP Apr 30, 2014

    I hope all the software you are running on your box are uptodate! PHP is slowly going to deprecate the mysql_connect methods and bring PDO as the successor.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Apr 30, 2014

    Prasad Ajinkya
    I hope all the software you are running on your box are uptodate! PHP is slowly going to deprecate the mysql_connect methods and bring PDO as the successor.
    Yep, it is. I was skeptical about upgrading to PHP 5.5 because of a few old stuff we had to run on the site. Just updated everything and it's working fine. I could have gone the PHP 5.4+APC way; because I had it running for quite some time in the past and it worked without issues. APC however, needed me to make changes in the configuration files. PHP 5.5 eliminates all of that with OPcache built in.

    The only thing I miss now is the GUI that threw a lot of interesting information about cache utilization. I hope to find a good and lightweight GUI script for the built-in one.

    Right now I'm considering ditching MySQL in favor of Percona. Gotta be doing a lot of reading before I do that. LiteSpeed+Percona+PHP5.5 is going to be a kick-ass combo to run. Will try to get a few performance graphs.
  • Prasad Ajinkya

    Prasad Ajinkya

    @prasad-aSUfhP Apr 30, 2014

    You do realize that Percona provides MySQL? If you are taking a look at Cloud DB + Managed Services do take a look at Amazon RDS as well.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Apr 30, 2014

    Yep, Percona has been developed to act as a drop replacement. Amazon guys have been in touch with us for porting CE to EC2. We however are sticking with LiquidWeb because they kick-ass with their support; second to none! Saves me lot of time and frustration.

    Percona, as I learn, reduces memory footprint to a great extent and also handle the queries more efficiently.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk May 1, 2014

    Okay, I was waiting for this! Google Webmaster Tools has confirmed that the page loading times have already gone down! Just a simple step and huge gains. I wonder how much improvement I'll see if I load LiteSpeed cache! 😁

    page-loading-time

    Tagging #-Link-Snipped-#
  • Abhishek Rawal

    Abhishek Rawal

    @abhishek-fg9tRh May 2, 2014

    #-Link-Snipped-# Nice improvement. I didn't bumped in thread to say that.
    I would like to know why 'recent-activity' feature is removed ? performance improvement is due to that ? That was nice feature, I hope it returns back.
    Cheers.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk May 2, 2014

    We checked the usage of that page and while it was a resource hog; no one really used it. If you want it; we can put it back. I seriously want it to be a lot more useful. Do you absolutely, really want it?
  • Abhishek Rawal

    Abhishek Rawal

    @abhishek-fg9tRh May 2, 2014

    #-Link-Snipped-# is my homepage! I used it the most, to know what's happening. I don't know about other CEans, but I used it more than CE's any of the available feature.
    I am quite sure many would be using it too. Since last five days I was waiting for it to reappear, but sadly it didn't.
    I just love that feature. If possible bring it back. Thanks.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk May 2, 2014

    You said it.