Learn about Centmin Mod LEMP Stack today
Register Now

CentOS 7.x Centmin Mod LEMP + HHVM fastcgi mode on CentOS 7

Discussion in 'Beta release code' started by eva2000, Dec 26, 2015.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    Thought I'd revisit Facebook's HHVM in fastcgi mode on CentOS 7 (only not bothering with CentOS 6) and looks promising but man does it consume alot of cpu, memory and disk resources for source compilation ! Source compiled as alot of CentOS RPM yum repo solutions involve out dated HHVM versions.

    Note HHVM solution for Centmin Mod LEMP stack, if or whenever it's available will be a Centmin Mod Premium User Membership option most likely due to amount of time and resources I would need to put towards such an integration. To give you an idea, just the dev server would cost US$2,000/yr and based on my hourly rates of work HHVM solution would be around US$30,000/yr in man hours ! :eek: PHP 7 seems like a much better alternative :D

    First attempt and just the git cloned source code consumes 1.4GB disk and it failed source compile 77+ minutes into compliation as compiler ran out of free available memory. You'd probably need at least 3-4GB memory and at least 2hrs for compile and install time.

    Code:
    free -m
                  total        used        free      shared  buff/cache   available
    Mem:           1839          71        1695           0          72        1644
    Swap:          1535         230        1305
    
    Code:
    g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    make[2]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/bytecode.cpp.o] Error 4
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
    make: *** [all] Error 2
    
    real    77m5.700s
    user    149m55.226s
    sys     60m41.225s
     
    Last edited: Dec 27, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    4GB Linode VPS HHVM Compile Test: GCC



    Testing 2nd attempt on 4GB Linode VPS (Fremont, CA) and compilation peaks around 2813MB of memory usage so far ! But much faster on GCC 4.8.5 with CentOS 7 on 4GB Linode VPS. Will be testing via Clang compiler instead of GCC as well to compare.

    Code:
    time make -j4
    
    Embedding php in hhvm
    Creating symlinks for hhvm
    [100%] Built target hhvm
    
    real    34m35.504s
    user    129m28.323s
    sys     7m18.637s
    
    Code:
    ./hphp/hhvm/hhvm --version
    HipHop VM 3.12.0-dev (rel)
    Compiler: heads/master-0-gf4169931e00a3148cb111695829b384b661f19ba
    Repo schema: f7376ca8da774eaed8e4bb197c9945d59b6469fc
    
    Code:
    time make install
    [  1%] Built target timelib
    [  7%] Built target folly
    [  9%] Built target wangle
    [ 14%] Built target hphp_proxygen
    [ 18%] Built target hphp_thrift
    [ 18%] Built target afdt
    [ 18%] Built target eaw_table
    [ 24%] Built target mbfl
    [ 25%] Built target webscalesqlclient
    [ 26%] Built target squangle
    [ 35%] Built target mcrouter
    [ 35%] Built target gen-class-map
    [ 35%] Built target gen-ext-hhvm
    [ 35%] Built target gen-infotabs
    [ 39%] Built target hphp_util
    [ 39%] Built target hfsort
    [ 39%] Built target jit_sort
    [ 39%] Built target version
    [ 39%] Built target hphp_system
    [ 39%] Built target hphp_parser
    [ 45%] Built target hphp_analysis
    [ 45%] Built target hack
    [ 47%] Built target hphp_hhbbc
    [ 48%] Built target neo
    [ 76%] Built target hphp_runtime_static
    [ 95%] Built target hphp_runtime_ext
    [ 95%] Built target ext_hhvm_static
    [ 99%] Built target hphp_ext_zend_compat
    [ 99%] Built target ppc64-asm
    [ 99%] Built target vixl
    [ 99%] Built target hphp_zend
    [ 99%] Built target systemlib
    [100%] Built target hhvm
    Install the project...
    -- Install configuration: ""
    -- Installing: /usr/local/lib64/hhvm/CMake/FindReadline.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibUODBC.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/cotire.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibVpx.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FollySetup.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibiconv.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindBISON.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HPHPCompiler.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/VisualStudioToolset.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindCClient.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibGmp.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindPThread.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindGold.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibIntl.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/MSVCDefaults.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibpam.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindFreetype.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindRE2.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibinotify.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLZ4.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindDoubleConversion.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibMagickWand.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindEditline.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibSQLite.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HPHPFindLibs.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindOCaml.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibZip.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibmemcached.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HHVMExtensionConfig.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindGlog.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HPHPSetup.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLLVM.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindMemfd.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibElf.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibYaml.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HPHPIZEFunctions.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindICU.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindGLIB.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLdap.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibEvent.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibXed.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindFLEX.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibDwarf.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/EXTFunctions.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/Options.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibNuma.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/HPHPFunctions.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindFastLZ.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindTBB.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindMySQL.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindPCRE.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindMcrypt.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibCh.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibAfdt.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/package.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibJpeg.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibjsonc.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindONIGURUMA.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibPng.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/FindLibDL.cmake
    -- Installing: /usr/local/lib64/hhvm/CMake/Findfribidi.cmake
    -- Installing header files for timelib
    -- Installing header files for folly
    -- Installing header files for wangle
    -- Installing header files for proxygen
    -- Installing header files for thrift
    -- Installing header files for libafdt
    -- Installing header files for libmbfl
    -- Installing header files for squangle
    -- Installing header files for webscalesqlclient
    -- Installing header files for mcrouter
    -- Installing: /usr/local/bin/hhvm-repo-mode
    -- Installing header files for compiler
    -- Installing: /usr/local/bin/hh_client
    -- Installing: /usr/local/bin/hh_server
    -- Installing: /usr/local/bin/hh_format
    -- Installing: /usr/local/bin/h2tp
    -- Installing: /usr/local/share/hhvm/hack/hacklib
    -- Installing: /usr/local/share/hhvm/hack/hacklib/hacklib.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/interfaces.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/immMap.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/setIterator.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/immVector.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/pair.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/vectorIterator.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/mapIterator.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/pairIterator.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/hacklib_iterator.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/collections.ns.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/immSet.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/hacklib_iteratorToken.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/vector.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/map.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/set.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_constSetLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_immSetLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_immMapLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_constMapLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_vectorLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_constVectorLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_commonContainerMethods.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_commonImmMutableContainerMethods.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_immVectorLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_commonMutableContainerMethods.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/vectorlike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_setLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/containers/helper_traits/hacklib_mapLike.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/invariant.ns.php
    -- Installing: /usr/local/share/hhvm/hack/hacklib/hacklib_enum_like.php
    -- Installing header files for hhbc
    -- Installing header files for neo
    -- Installing header files for parser
    -- Installing header files for runtime
    -- Installing header files for ext
    -- Installing header files for ext_zend_compat
    -- Installing header files for system
    -- Installing header files for util
    -- Installing header files for ppc64-asm
    -- Installing header files for vixl
    -- Installing header files for vixl
    -- Installing header files for zend
    -- Installing: /usr/local/bin/hhvm
    -- Installing header files for hhvm
    -- Installing: /usr/local/bin/hhvm-gdb
    -- Installing: /usr/local/lib64/hhvm/gdb/gdbutils.py
    -- Installing: /usr/local/lib64/hhvm/gdb/asio.py
    -- Installing: /usr/local/lib64/hhvm/gdb/nameof.py
    -- Installing: /usr/local/lib64/hhvm/gdb/compatibility.py
    -- Installing: /usr/local/lib64/hhvm/gdb/util.py
    -- Installing: /usr/local/lib64/hhvm/gdb/frame.py
    -- Installing: /usr/local/lib64/hhvm/gdb/stack.py
    -- Installing: /usr/local/lib64/hhvm/gdb/hashes.py
    -- Installing: /usr/local/lib64/hhvm/gdb/lookup.py
    -- Installing: /usr/local/lib64/hhvm/gdb/pretty.py
    -- Installing: /usr/local/lib64/hhvm/gdb/repo.py
    -- Installing: /usr/local/lib64/hhvm/gdb/hhvm.py
    -- Installing: /usr/local/lib64/hhvm/gdb/unit.py
    -- Installing: /usr/local/lib64/hhvm/gdb/idx.py
    -- Installing: /usr/local/lib64/hhvm/gdb/sizeof.py
    -- Installing: /usr/local/lib64/hhvm/gdb/hhbc.py
    -- Installing: /usr/local/bin/hphpize
    -- Installing: /usr/local/lib64/hhvm/hphpize/hphpize.cmake
    -- Installing: /usr/local/lib64/hhvm/hphpize/run
    
    real    0m5.976s
    user    0m4.093s
    sys     0m1.123s
    Code:
     hhvm --version
    HipHop VM 3.12.0-dev (rel)
    Compiler: heads/master-0-gf4169931e00a3148cb111695829b384b661f19ba
    Repo schema: f7376ca8da774eaed8e4bb197c9945d59b6469fc
    Code:
    systemctl start hhvm
    
    systemctl status hhvm
    ● hhvm.service - HHVM (FCGI centminmod)
       Loaded: loaded (/usr/lib/systemd/system/hhvm.service; disabled; vendor preset: disabled)
       Active: active (running) since Sat 2015-12-26 08:45:50 UTC; 2s ago
    Main PID: 16345 (hhvm)
       CGroup: /system.slice/hhvm.service
               └─16345 /usr/local/bin/hhvm -m daemon -u nginx -c /etc/hhvm/server.ini
    
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: onig_init = 0ms wall, 0ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: pagein_self = 39ms wall, 33ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: pcre_reinit = 3ms wall, 6ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: pthread_init = 2ms wall, 3ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: rds::requestExit = 0ms wall, 0ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: servers started = 3ms wall, 3ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: timezone_init = 0ms wall, 0ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: warmup = 0ms wall, 0ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: xenon = 0ms wall, 0ms cpu
    Dec 26 08:45:51 hhvmserverhost hhvm[16345]: BootTimer: xmlInitParser = 0ms wall, 0ms cpu
    
    Code:
    systemctl enable hhvm
    Created symlink from /etc/systemd/system/multi-user.target.wants/hhvm.service to /usr/lib/systemd/system/hhvm.service.
    Code:
    ps aufx | grep '\/bin\/hhvm' | grep -v grep
    nginx    16345  0.8  3.7 809132 152728 ?       Ssl  08:45   0:00 /usr/local/bin/hhvm -m daemon -u nginx -c /etc/hhvm/server.ini
    Code:
    netstat -plant | grep  hhvm
    tcp6       0      0 :::9011                 :::*                    LISTEN      16506/hhvm    
    tcp6       0      0 :::9012                 :::*                    LISTEN      16506/hhvm 
    Centmin Mod command shortcuts to restart, stop or start nginx + php-fpm + hhvm all at once :)

    Code:
    nphstop
    Stopping nginx (via systemctl):                            [  OK  ]
    Gracefully shutting down php-fpm  done
    Redirecting to /bin/systemctl stop  hhvm.service
    
    nphstart
    Starting nginx (via systemctl):                            [  OK  ]
    Starting php-fpm  done
    Redirecting to /bin/systemctl start  hhvm.service
    
    nphrestart
    Restarting nginx (via systemctl):                          [  OK  ]
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    Redirecting to /bin/systemctl restart  hhvm.service
    
    Code:
    ps aufx | egrep 'nginx|php-fpm|/bin/hhvm' | grep -v grep
    root     17251  0.0  0.6 174192 26196 ?        Ss   10:02   0:00 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    nginx    17252  0.0  0.8 182388 35456 ?        S<l  10:02   0:00  \_ nginx: worker process
    root     17276  0.0  0.3 533808 12628 ?        Ss   10:02   0:00 php-fpm: master process (/usr/local/etc/php-fpm.conf)
    nginx    17293  0.0  3.7 804720 151848 ?       Ssl  10:02   0:00 /usr/local/bin/hhvm -m daemon -c /etc/hhvm/server.ini
    HHVM Info

    hhvm-3.12-hhvminfo-00.png

    HHVM PHP Extensions loaded out of the box

    hhvm-3.12-hhvminfo-01.png
     
    Last edited: Dec 27, 2015
    • Informative Informative x 2
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    4GB Linode VPS HHVM Compile Test: Clang



    4GB Linode KVM CentOS 7 install Facebook HHVM fastcgi mode on Centmin Mod but this time with Clang instead of GCC compiler.

    Unfortunately, compilation failed with Clang 3.4.2 :( So stick with GCC for now
    Code:
    Linking C static library libtimelib.a
    cd /svr-setup/hhvm/third-party/timelib && /usr/bin/cmake -P CMakeFiles/timelib.dir/cmake_clean_target.cmake
    cd /svr-setup/hhvm/third-party/timelib && /usr/bin/cmake -E cmake_link_script CMakeFiles/timelib.dir/link.txt --verbose=1
    /usr/bin/ar cr libtimelib.a  CMakeFiles/timelib.dir/astro.c.o CMakeFiles/timelib.dir/dow.c.o CMakeFiles/timelib.dir/interval.c.o CMakeFiles/timelib.dir/parse_date.c.o CMakeFiles/timelib.dir/parse_iso_intervals.c.o CMakeFiles/timelib.dir/parse_tz.c.o CMakeFiles/timelib.dir/timelib.c.o CMakeFiles/timelib.dir/tm2unixtime.c.o CMakeFiles/timelib.dir/unixtime2tm.c.o
    /usr/bin/ranlib libtimelib.a
    make[2]: Leaving directory `/svr-setup/hhvm'
    /usr/bin/cmake -E cmake_progress_report /svr-setup/hhvm/CMakeFiles  97
    [  1%] Built target timelib
    make[1]: Leaving directory `/svr-setup/hhvm'
    make: *** [all] Error 2
     
    Last edited: Dec 26, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    4GB vs 8GB vs 16GB Linode VPS HHVM Compile Test: GCC



    I upgraded the 4GB Linode with 4 CPU cores to 8GB Linode with 6 CPU cores and 16GB Linode with 8 CPU cores for comparison install time tests. All Linode KVM VPSes were using Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz processors. Edit: for 16GB Linode VPS test also re-attempting Clang compiler instead of GCC.

    Centmin Mod 123.09beta01 install with PHP 5.6.16 default via
    Code:
    curl -O https://centminmod.com/betainstaller56.sh && chmod 0700 betainstaller56.sh && bash betainstaller56.sh
    • 4GB Linode = 1031.9 seconds
    • 8GB Linode = 920.7 seconds ~10.78% faster
    • 16GB Linode = 818.8 seconds ~20.65% faster than 4GB Linode and 11.07% faster than 8GB Linode
    HHVM 3.12dev install
    • 4GB Linode GCC 4.8.5 compiler = 2248 seconds
    • 8GB Linode GCC 4.8.5 compiler = 1613 seconds ~28.25% faster
    • 16GB Linode GCC 4.8.5 compiler = 1163 seconds ~48.27% faster than 4GB Linode and ~27.90% faster than 8GB Linode. Looks like you'd need at least 8 cpu thread based server for decent enough HHVM source compilation times.
    • 16GB Linode Clang 3.4.2 compiler = 2040 seconds. Looks like GCC was faster than Clang !
    To compare on 16GB Linode, I also timed the PHP 5.6.16 to PHP 7.0.1 upgrade source compile + recompile via source all custom PHP extensions time via centmin.sh menu option 5
    • PHP 5.6.16 to PHP 7.0.1 Update time = 340.90 seconds on 16GB Linode
    Source compiled PHP extensions include geoip, igbinary, imagick, memcache, memcached, mongodb, redis. For mongodb and memcache the are still compiled when they fail for PHP 7 support for now and are later removed from loading.

    Code:
    php -v
    PHP 7.0.1 (cli) (built: Dec 26 2015 15:09:39) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    
    Code:
     php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    imagick
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu             
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    PHP Upgrade - Would you like to continue? [y/n] y
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.16, 7.0.0, NGDEBUG)
    PHP 7.0.0 is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 7.1.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.0.1
    
    Code:
    -----------------------------------------------------------------------------------------
    Detected PHP 7.0 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y

    Centmin Mod LEMP Stack Install Time Stats



    Linode 4GB
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 105.0028 seconds
    Total YUM Time: 165.099896785 seconds
    Total YUM + Source Download Time: 189.5639
    Total Nginx First Time Install Time: 145.9959
    Total PHP First Time Install Time: 306.6986
    Download Zip From Github Time: 4.0255
    Total Time Other eg. source compiles: 280.6256
    Total Centmin Mod Install Time: 922.8840
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1031.9123 seconds
    ---------------------------------------------------------------------------
    Linode 8GB
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 128.0073 seconds
    Total YUM Time: 153.806501102 seconds
    Total YUM + Source Download Time: 173.4034
    Total Nginx First Time Install Time: 105.3145
    Total PHP First Time Install Time: 249.3175
    Download Zip From Github Time: 3.8842
    Total Time Other eg. source compiles: 260.7856
    Total Centmin Mod Install Time: 788.8209
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 920.7124 seconds
    ---------------------------------------------------------------------------
    Linode 16GB
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 132.5855 seconds
    Total YUM Time: 156.191634796 seconds
    Total YUM + Source Download Time: 175.9991
    Total Nginx First Time Install Time: 81.9097
    Total PHP First Time Install Time: 185.8544
    Download Zip From Github Time: 4.0501
    Total Time Other eg. source compiles: 238.4232
    Total Centmin Mod Install Time: 682.1865
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 818.8221 seconds
    ---------------------------------------------------------------------------
    Code:
    top - 13:18:11 up 1 min,  1 user,  load average: 0.00, 0.00, 0.00
    Tasks: 128 total,   1 running, 127 sleeping,   0 stopped,   0 zombie
    %Cpu0  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu2  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu3  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu4  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu5  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    KiB Mem:   8173564 total,   223336 used,  7950228 free,     6808 buffers
    KiB Swap:   524284 total,        0 used,   524284 free.    65808 cached Mem
    
    Code:
    top -c
    top - 14:26:42 up 0 min,  1 user,  load average: 0.00, 0.00, 0.00
    Tasks: 145 total,   1 running, 144 sleeping,   0 stopped,   0 zombie
    %Cpu0  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu2  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu3  :  0.0 us,  0.4 sy,  0.0 ni, 99.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu4  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu5  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu6  :  0.0 us,  0.0 sy,  0.0 ni, 92.4 id,  7.6 wa,  0.0 hi,  0.0 si,  0.0 st
    %Cpu7  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    KiB Mem:  16430836 total,   241312 used, 16189524 free,     6824 buffers
    KiB Swap:   524284 total,        0 used,   524284 free.    65868 cached Mem
    
    For Wordpress at least, not sure if the amount of resources and effort put into compiling HHVM on CentOS 7 is necessary when you can throw Redis caching at Nginx and WP object caching level in front of a PHP 7 install on a 2GB KVM VPS server for very good results as well = 302 million hits/day Wordpress blog !
     
    Last edited: Dec 27, 2015
    • Informative Informative x 3
  5. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    HHVM Compiled Test on Xeon E3-1245v2



    Did fresh test on my SoYouStart dedicated server, Xeon E3-1245v2 with CentOS 7.2
    • Centmin Mod install time = 649 seconds
    • HHVM 3.12 dev install time = 1400 seconds
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 75.0353 seconds
    Total YUM Time: 61.473927927 seconds
    Total YUM + Source Download Time: 81.0943
    Total Nginx First Time Install Time: 83.1203
    Total PHP First Time Install Time: 170.1633
    Download Zip From Github Time: 10.9993
    Total Time Other eg. source compiles: 229.3431
    Total Centmin Mod Install Time: 563.7210
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 649.7556 seconds
    ---------------------------------------------------------------------------
    Code:
    HipHop VM 3.12.0-dev (rel)
    Compiler: heads/master-0-g9f5bc2b643f156691b20efdbfeff0719834486c8
    Repo schema: 599cb706875976b51c3162da0ebe09efe2e49cc2
    Code:
    systemctl status hhvm
    ● hhvm.service - HHVM (FCGI centminmod)
       Loaded: loaded (/usr/lib/systemd/system/hhvm.service; enabled; vendor preset: disabled)
       Active: active (running) since Tue 2015-12-29 13:05:39 UTC; 4min 19s ago
    Main PID: 5634 (hhvm)
       CGroup: /system.slice/hhvm.service
               └─5634 /usr/local/bin/hhvm -m daemon -c /etc/hhvm/server.ini -c /etc/hhvm/php.ini
    
    Dec 29 13:05:39 centminmod.com systemd[1]: Started HHVM (FCGI centminmod).
    Dec 29 13:05:39 centminmod.com systemd[1]: Starting HHVM (FCGI centminmod)...
    upload_2015-12-29_23-13-28.png

    Default CentminMod PHP 7.0.1 configure options
    Default Centmin Mod's PHP 7.0.1 (php-fpm)
    Code:
    curl -I localhost:80/geoip.php
    HTTP/1.1 200 OK
    Date: Tue, 29 Dec 2015 13:15:15 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Server: nginx centminmod
    X-Powered-By: centminmod
    Centmin Mod's HHVM 3.12dev
    Code:
    curl -I localhost:8010/geoip.php
    HTTP/1.1 200 OK
    Date: Tue, 29 Dec 2015 13:16:22 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    X-Powered-By: centminmod
    Vary: Accept-Encoding
    Server: nginx centminmod
    No difference for simple hello.php bench

    Centmin Mod PHP 7.0.1 (php-fpm)
    Code:
    siege -q -b -c10 -r10 http://localhost:80/hello.php
          done.
    
    Transactions:                    100 hits
    Availability:                 100.00 %
    Elapsed time:                   0.01 secs
    Data transferred:               0.00 MB
    Response time:                  0.00 secs
    Transaction rate:           10000.00 trans/sec
    Throughput:                     0.30 MB/sec
    Concurrency:                   10.00
    Successful transactions:         100
    Failed transactions:               0
    Longest transaction:            0.01
    Shortest transaction:           0.00
    Centmin Mod HHVM 3.12 dev
    Code:
    siege -q -b -c10 -r10 http://localhost:8010/hello.php
          done.
    
    Transactions:                    100 hits
    Availability:                 100.00 %
    Elapsed time:                   0.01 secs
    Data transferred:               0.00 MB
    Response time:                  0.00 secs
    Transaction rate:           10000.00 trans/sec
    Throughput:                     0.30 MB/sec
    Concurrency:                   10.00
    Successful transactions:         100
    Failed transactions:               0
    Longest transaction:            0.01
    Shortest transaction:           0.00
    Processes
    Code:
    ps aufx | egrep 'nginx|php-fpm|hhvm' | grep -v grep
    root      6392  0.0  0.0 174192 29156 ?        Ss   13:16   0:00 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    nginx     6393  0.0  0.1 194676 44192 ?        S<l  13:16   0:01  \_ nginx: worker process
    nginx     6394  0.0  0.1 194676 44196 ?        S<l  13:16   0:01  \_ nginx: worker process
    nginx     6395  0.0  0.1 194676 40096 ?        S<l  13:16   0:01  \_ nginx: worker process
    root      6421  0.0  0.0 533856  9448 ?        Ss   13:16   0:00 php-fpm: master process (/usr/local/etc/php-fpm.conf)
    nginx     6438  0.6  0.6 1426092 228144 ?      Ssl  13:16   0:36 /usr/local/bin/hhvm -m daemon -c /etc/hhvm/server.ini -c /etc/hhvm/php.ini
    binary sizes
    Code:
    ls -lah $(which hhvm)
    -rwxr-xr-x. 1 root root 70M Dec 29 13:05 /usr/local/bin/hhvm
    
    ls -lah $(which php)
    -rwxr-xr-x. 1 root root 9.9M Dec 29 12:32 /usr/local/bin/php

    loader.io 100 clients/second quick test



    Quick loader.io test with 100 clients/second load to test Wordpress 4.4 blog installed via centmin.sh menu option 22 with WP Super Cache and WP Cron disabled (system crond used instead). Did 2 runs for each PHP 7.0.1 and HHVM tests. You'll notice HHVM has a much higher max response time on 1st run due to HHVM needing to warm up first.

    PHP 7.0.1



    run 1
    loaderio-php701-run01.png

    run 2

    loaderio-php701-run02.png

    HHVM



    run 1

    loaderio-hhvm312dev-run01.png

    run 2

    loaderio-hhvm312dev-run02.png
     
    Last edited: Dec 30, 2015
  6. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    loader.io 200 clients/second quick test



    loader.io test with 200 clients/second load to test Wordpress 4.4 blog installed via centmin.sh menu option 22 with WP Super Cache and WP Cron disabled (system crond used instead). Did 2 runs for each PHP 7.0.1 and HHVM tests.

    You'll notice again HHVM has a much higher max response time on 1st run due to HHVM needing to warm up first. But once HHVM is warmed up on run 2, the average response time is slightly better

    PHP 7.0.1
    • run 1 = 33ms avg response time & min/max 29/308ms
    • run 2 = 32ms avg response time & min/max 30/265ms
    HHVM
    • run 1 = 49ms avg response time & min/max 28/10107ms
    • run 2 = 30ms avg response time & min/max 28/494ms

    PHP 7.0.1



    run 1
    loaderio-php701-run01-c200.png

    run 2
    loaderio-php701-run02-c200.png

    HHVM



    run 1
    loaderio-hhvm312dev-run01-c200.png

    run 2
    loaderio-hhvm312dev-run02-c200.png
     
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    loader.io 300 clients/second quick test



    loader.io test with 300 clients/second load to test Wordpress 4.4 blog installed via centmin.sh menu option 22 with WP Super Cache and WP Cron disabled (system crond used instead). Did 2 runs for each PHP 7.0.1 and HHVM tests.

    • You'll notice again HHVM has a much higher max response time on 1st run due to HHVM needing to warm up first. This time HHVM for first ~15 seconds or so had 600 clients 2x times the test number until it warmed up ???
    • But once HHVM is warmed up on run 2, the average response time is slightly better

    PHP 7.0.1
    • run 1 = 33ms avg response time & min/max 29/168ms
    • run 2 = 34ms avg response time & min/max 30/298ms
    HHVM
    • run 1 = 339ms avg response time & min/max 28/10205ms
    • run 2 = 31ms avg response time & min/max 28/266ms

    PHP 7.0.1



    run 1
    loaderio-php701-run01-c300.png

    run 2
    loaderio-php701-run02-c300.png

    HHVM



    run 1
    loaderio-hhvm312dev-run01-c300.png

    run 2
    loaderio-hhvm312dev-run02-c300.png
     
    Last edited: Dec 30, 2015
  8. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    loader.io 400 clients/second quick test



    loader.io test with 400 clients/second load to test Wordpress 4.4 blog installed via centmin.sh menu option 22 with WP Super Cache and WP Cron disabled (system crond used instead). Did 2 runs for each PHP 7.0.1 and HHVM tests. Added Redis Nginx level caching + Redis Object WP Plugin cache loader.io tests too to compare.

    • You'll notice again HHVM has a much higher max response time on 1st run due to HHVM needing to warm up first. This time HHVM for almost the entire run up to around 50 seconds or so had 800 clients 2x times the test number ??? This resulted in 1st run with much slower average response times at 1118ms
    • But once HHVM is warmed up on run 2, the average response time is slightly better than PHP 7.0.1
    • Redis cache is the winner here with 1/2 the response time averages and much lower max response times :) Not surprising for a dedicated Xeon E3-1245v2 server given this setup managed 302 million hits/day on a 2GB DigitalOcean VPS.
    • The HHVM log seems to be populated full of these warning messages though:
      Code (Text):
      [Wed Dec 30 07:03:35 2015] [hphp] [21274:7f76e0bff700:134:000005] [] \nWarning: ltrim() expects parameter 1 to be string, null given in /home/nginx/domains/domain.com/public/wp-includes/wp-db.php on line 2657
      [Wed Dec 30 07:03:35 2015] [hphp] [21274:7f76e0bff700:134:000006] [] \nWarning: preg_match() expects parameter 2 to be string, null given in /home/nginx/domains/domain.com/public/wp-includes/wp-db.php on line 2658

    PHP 7.0.1
    • run 1 = 41ms avg response time & min/max 29/564ms
    • run 2 = 41ms avg response time & min/max 30/1052ms
    HHVM
    • run 1 = 1118ms avg response time & min/max 30/10001ms
    • run 2 = 33ms avg response time & min/max 29/486ms
    Redis Cache Nginx + Redis Object cache WP + PHP 7.0.1
    • run 1 = 16ms avg response time & min/max 16/281ms
    • run 2 = 16ms avg response time & min/max 16/347ms

    PHP 7.0.1



    run 1
    loaderio-php701-run01-c400.png

    run 2
    loaderio-php701-run02-c400.png

    HHVM



    run 1
    loaderio-hhvm312dev-run01-c400.png

    run 2
    loaderio-hhvm312dev-run02-c400.png

    Redis Cache Nginx + Redis Object cache WP + PHP 7.0.1



    run1
    loaderio-php701-run01-c400-redis.png

    run2
    loaderio-php701-run02-c400-redis.png
     
    Last edited: Dec 30, 2015
  9. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5

    loader.io 0-300 clients stepped test



    loader.io test changed pattern of traffic from constant clients to 0-300 clients over 1 min duration to test Wordpress 4.4 blog installed via centmin.sh menu option 22 with WP Super Cache and WP Cron disabled (system crond used instead). Did 2 runs for each PHP 7.0.1 and HHVM tests. Added Redis Nginx level caching + Redis Object WP Plugin cache loader.io tests too to compare.

    • You'll notice again HHVM has a much higher max response time on 1st run due to HHVM needing to warm up first.
    • But once HHVM is warmed up on run 2, the average response time is slightly better than PHP 7.0.1
    • Redis cache is the winner here again with lower average response times :) But max response time was higher.

    PHP 7.0.1
    • run 1 = 342ms avg response time & min/max 44/693ms
    • run 2 = 342ms avg response time & min/max 44/696ms
    HHVM
    • run 1 = 359ms avg response time & min/max 38/10002ms
    • run 2 = 326ms avg response time & min/max 28/669ms
    Redis Cache Nginx + Redis Object cache WP + PHP 7.0.1
    • run 1 = 56ms avg response time & min/max 16/3663ms
    • run 2 = 56ms avg response time & min/max 16/3632ms

    PHP 7.0.1



    run 1
    loaderio-php701-run01-c0-300.png

    run 2
    loaderio-php701-run02-c0-300.png

    HHVM



    run 1
    loaderio-hhvm312dev-run01-c0-300.png

    run 2
    loaderio-hhvm312dev-run02-c0-300.png

    Redis Cache Nginx + Redis Object cache WP + PHP 7.0.1



    run1
    loaderio-php701-run01-c0-300-redis.png

    run2
    loaderio-php701-run02-c0-300-redis.png

    For Redis, if one server isn't enough, you can always setup a load balanced cluster or auto sharded Redis cluster :)

    upload_2015-12-30_23-2-18.png

    redis server standalone
    Code:
    redis-benchmark -h 127.0.0.1 -p 6379 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -q
    SET: 566091.12 requests per second
    GET: 932400.94 requests per second
    LPUSH: 725426.19 requests per second
    LPOP: 668896.31 requests per second
    
    redis cluster with 4 masters + 4 slaves connecting to master on port 23001
    Code:
    redis-benchmark -h 127.0.0.1 -p 23001 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -q
    SET: 1311475.38 requests per second
    GET: 1443001.38 requests per second
    LPUSH: 1327140.00 requests per second
    LPOP: 1456664.25 requests per second
    
    redis auto sharded cluster proxy with redis cluster master as backends
    Code:
    redis-benchmark -h 127.0.0.1 -p 22124 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -q
    SET: 394633.00 requests per second
    GET: 401042.72 requests per second
    LPUSH: 367782.25 requests per second
    LPOP: 389332.28 requests per second
    
    redis auto sharded cluster proxy with individual redis servers as backends from ports 6379 to 6384
    Code:
    redis-benchmark -h 127.0.0.1 -p 22125 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -q 
    SET: 369754.12 requests per second
    GET: 400320.28 requests per second
    LPUSH: 404694.47 requests per second
    LPOP: 325626.81 requests per second
    
    redis cluster using 4 masters as load balanced backends to an Nginx TCP stream based upstream setup
    Code:
    redis-benchmark -h 127.0.0.1 -p 19001 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -q    
    SET: 1137009.75 requests per second
    GET: 1193317.38 requests per second
    LPUSH: 1273074.50 requests per second
    LPOP: 1222493.88 requests per second
    
     
    Last edited: Dec 30, 2015
  10. eva2000

    eva2000 Administrator Staff Member

    29,743
    6,719
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,031
    Local Time:
    9:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    Not really representative of performance but php benchmark script runs Free PHP Benchmark Performance Script

    Running on CentminMod.com LEMP web stack PHP 7.0.2 PHP-FPM vs HHVM 3.12 dev on CentOS 7.2 with Soyoustart E3-1245v2 32GB ram 3x120GB SSD server

    PHP 7.0.2
    Code:
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2016-01-11 02:04:07
    Server : centminmod.com LEMP stack server
    PHP version : 7.0.2
    Platform : Linux
    --------------------------------------
    test_ifelse               : 0.165 sec.
    test_loops                : 0.241 sec.
    test_stringmanipulation   : 0.341 sec.
    test_math                 : 0.217 sec.
    --------------------------------------
    Total time:               : 0.964 sec.
    
    HHVM 3.12 dev 1st run prior to warm up needs at least 12 reloads
    Code:
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2016-01-11 02:04:26
    Server : centminmod.com LEMP stack server
    PHP version : 7.0.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.545 sec.
    test_stringmanipulation   : 0.661 sec.
    test_ifelse               : 0.993 sec.
    test_loops                : 1.217 sec.
    --------------------------------------
    Total time:               : 3.416 sec.
    
    HHVM 3.12 dev 13th run
    Code:
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2016-01-11 02:05:58
    Server : centminmod.com LEMP stack server
    PHP version : 7.0.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.293 sec.
    test_stringmanipulation   : 0.455 sec.
    test_ifelse               : 0.097 sec.
    test_loops                : 0.133 sec.
    --------------------------------------
    Total time:               : 0.978 sec.
    
     
    • Informative Informative x 2
    • Like Like x 1
Thread Status:
Not open for further replies.