Want more timely Centmin Mod News Updates?
Become a Member

PHP PHP 5.7 almost 2x times faster than PHP 5.6

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Jul 22, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Great news for PHP users regarding PHPNG (PHP 5.7) PHP NG now nearly TWICE as fast as PHP 5.6 | _ck_ says... and PHP NG within 10-25% of HHVM performance | _ck_ says...

    phpng-vs-hhvm.png

    Amazing speed up there with PHP 5.7 (phpng) compared to PHP 5.6 !

    Other PHP 5.7 (phpng) benchmarks and information listed below
    Centmin Mod is readying support for PHP 5.6 RC releases and you can test it via instructions at PHP-FPM - PHP 5.6 support testing for .07 betas | Centmin Mod Community.

    Might see if PHP 5.7 (phpng) can also be tested too :D

    Update: Centmin Mod now supports auto installation of PHP 7.0 / PHP NG via it's menu based install method.

     
    Last edited: Sep 23, 2014
  2. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    10:32 AM
    1.7.2
    Percona 5.6
    Testing on centminmod :) no errors
    [root@server1 centmin-v1.2.3mod]# php -v
    PHP 5.7.0-dev (cli) (built: Jul 22 2014 23:47:43)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.7.0-dev, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    [root@server1 centmin-v1.2.3mod]#
    Screenshot_8.png
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah you beat me to it.. for PHP 5.7 should be same install method work around as for PHP 5.6 https://community.centminmod.com/threads/php-5-6-support-testing-for-07-betas.559/ - manual download to /svr-setup in naming format of php-5.7.0.tar.gz then running menu option 5 to upgrade PHP and specify PHP version = 5.7.0

    or did you bypass the Centmin Mod menu option 5 method ?

    edit: I guess you bypassed the menu option 5 as there's quite a few file edits to make it work with PHP 5.7.0 https://community.centminmod.com/th...-testing-for-centmin-mod-betas.892/#post-3957
     
    Last edited: Jul 23, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    10:32 AM
    1.7.2
    Percona 5.6
    No , I edited centmin.sh

    PHPMVER=$(echo "$PHP_VERSION" | cut -d . -f1,2)
    if [[ "$APCINSTALL" = [nN] || "$ZOPCACHEDFT" = [yY] && "$PHPMVER" != '5.7' ]]; then
    zopcacheinstall
    fi

    # if PHP_VERSION = 5.5 will need to setup a zendopcache.ini settings file
    if [[ "$APCINSTALL" = [nN] || "$ZOPCACHEDFT" = [yY] && "$PHPMVER" = '5.7' ]]; then
    zopcache_initialini
    fi

    php_configure.inc

    if [[ "$PHPMUVER" = '5.6' || "$PHPMUVER" = '5.7' && "zendopcacheon" = [yY] || "ZOPCACHEDFT" = [yY] ]]; then
    Download source to /svr-setup
    I then select menu 5 , :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    10:32 AM
    1.7.2
    Percona 5.6
    Yes , Centos 6.5 :)
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ok seems PHP NG should be PHP 6.x not 5.7 according one of the PHP devs at http://www.reddit.com/r/programming/comments/2ardou/php_57_aka_phpng_is_now_nearly_twice_as_fast_as/ = nikic http://www.reddit.com/user/nikic

     
  9. Peter Downey

    Peter Downey Member

    64
    24
    8
    May 28, 2014
    Ratings:
    +27
    Local Time:
    11:32 PM
    Those gains on WordPress are pretty incredible.
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Sep 23, 2014
  11. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    10:32 PM
    1.0.15
    In the graphic, it appears that the HHVM module can still be a good choice vs. PHP 5.7, alpha version anyway.

    Any particular reason why Wordpress and Drupal don't perform quite as well with PHP 5.7 as some of the other tests?
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Probably how each respective PHP app is coded ? The full details of those benchmarks by Zend CTO are at http://zsuraski.blogspot.com.au/2014/07/benchmarking-phpng.html but it doesn't go into such details though. Would be interesting to see Zend Opcache memory used size for each of those tests and PHP apps.
     
  13. SneakyDave

    SneakyDave Member

    84
    14
    8
    Jul 24, 2014
    Ratings:
    +22
    Local Time:
    10:32 PM
    1.0.15
    Yeah, just curious if Wordpress and Drupal are using newer PHP code functions or certain PHP functions that might not show up as much in the other deployments. I'll do some investigation, thanks for the info.
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like PHP NG might be PHP 7 according to ck's comment at http://ckon.wordpress.com/2014/07/17/phpng-hhvm-performance/

     
  16. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  17. Andy

    Andy Active Member

    540
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    10:32 PM
  18. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    1:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Well Wordpress doesn't need to use any of those cache mechanisms like Memcached, as the auto installer uses WP Super Cache plugin which is static file caching and works well from Blitz.io benchmarks ~4,000 user stress test = 151.9 million hits/day Wordpress Nginx Auto Installer Script :D