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

Discussion in 'Computer Science | IT | Networking' started by Kaustubh Katdare, Apr 29, 2014.

  1. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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.
     
    #1
  2. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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.
     
    • Like Like x 1
    #2
  3. Prasad Ajinkya

    Engineering Discipline:
    Computer Science
    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.
     
    • Agree Agree x 1
    #3
  4. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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.
     
    #4
  5. Prasad Ajinkya

    Engineering Discipline:
    Computer Science
    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.
     
    #5
  6. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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.
     
    #6
  7. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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! :D

    page-loading-time.

    Tagging @Prasad Ajinkya
     
    #7
  8. Abhishek Rawal

    Moderator

    Engineering Discipline:
    Electronics & Communications
    @Kaustubh Katdare 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.
     
    #8
  9. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    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?
     
    #9
  10. Abhishek Rawal

    Moderator

    Engineering Discipline:
    Electronics & Communications
    www.crazyengineers.com/recent-activity 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.
     
    #10
    Last edited: May 3, 2014
  11. Kaustubh Katdare

    Administrator

    Engineering Discipline:
    Electrical
    You said it.
     
    • Like Like x 1
    #11
: php

Share This Page