Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


PHP Benchmark Script - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

PHP Benchmark Script

2

Comments

  • colmcolm Member

    On a Wable VM I use for Magento hosting with HHVM:

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 17:44:23
    Server : [email protected]
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.372 sec.
    test_stringmanipulation   : 0.639 sec.
    test_ifelse               : 0.036 sec.
    test_loops                : 0.077 sec.
    --------------------------------------
    Total time:               : 1.124 sec.

    And the same server with PHP-FPM:

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 17:46:08
    Server : [email protected]
    PHP version : 5.5.9-1ubuntu4.11
    Platform : Linux
    --------------------------------------
    test_math                 : 1.271 sec.
    test_stringmanipulation   : 1.243 sec.
    test_loops                : 0.776 sec.
    test_ifelse               : 0.636 sec.
    --------------------------------------
    Total time:               : 3.926 sec.

  • @4n0nx said:
    You need to select the test results and then hit the C button above the post you are typing

    The strange is: I did put it in the code "`" tags..

  • nexusrain said: The strange is: I did put it in the code "`" tags..

    Just use the C button :))

  • @4n0nx said:
    Someone wrote that it's because of caching in php 5.6 - can anyone confirm? It would have been good if tr1cky had mentioned the CPU/server specs

    Php OpCache caches the compiled php code so when executing a php again, the system can directly execute the code without compiling it first. That's why it's much faster. But if you run the test only once, the test will be like without opc.

    Thanked by 14n0nx
  • @colm said:
    On a Wable VM I use for Magento hosting with HHVM:

    Impressive.. does HHVM work with normal PHP code?

    Thanked by 14n0nx
  • DalCompDalComp Member
    edited August 2015

    Oh new benchmark script for kiddies. I'm in.

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 00:37:17
    Server : @
    PHP version : 5.3.3
    Platform : Linux
    --------------------------------------
    test_math                 : 1.382 sec.
    test_stringmanipulation   : 1.413 sec.
    test_loops                : 1.234 sec.
    test_ifelse               : 0.960 sec.
    --------------------------------------
    Total time:               : 4.989 sec.

    i7-920 SeFlow dedicated server.

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 00:26:30
    Server : localhost@::1
    PHP version : 5.5.24
    Platform : WINNT
    --------------------------------------
    test_Math                 : 22.184 sec.
    test_StringManipulation   : 38.641 sec.
    test_Loops                : 14.056 sec.
    test_IfElse               : 8.827 sec.
    --------------------------------------
    Total time:               : 83.708 sec.
    

    Atom Z3735F Windows tablet running XAMPP.

  • colmcolm Member

    @nexusrain try using

    <pre><code></code></pre>

    Thanked by 1nexusrain
  • hostnoob said: Impressive.. does HHVM work with normal PHP code?

    I think so! http://hhvm.com/blog/3095/getting-wordpress-running-on-hhvm

    Thanked by 1hostnoob
  • @DalComp said:
    Oh new benchmark script for kiddies. I'm in.

    --------------------------------------
    > |Wrong Script

    i7-920 SeFlow dedicated server.

    > --------------------------------------
    > |        PHP BENCHMARK SCRIPT        |
    > --------------------------------------
    > Start : 2015-08-02 00:26:30
    > Server : localhost@::1
    > PHP version : 5.5.24
    > Platform : WINNT
    > --------------------------------------
    > test_Math                 : 22.184 sec.
    > test_StringManipulation   : 38.641 sec.
    > test_Loops                : 14.056 sec.
    > test_IfElse               : 8.827 sec.
    > --------------------------------------
    > Total time:               : 83.708 sec.
    > 

    Atom Z3735F Windows tablet running XAMPP.

    83 is something...

  • colmcolm Member

    @hostnoob Yes, I'd say 90% to 95% of PHP code works on HHVM and it's production ready. I also have PHP-FPM on the server to cover PHP code that isn't compatible.

    HHVM is currently the fastest PHP runtime, followed by PHP 7.

    Thanked by 1hostnoob
  • @Nomad said:
    83 is something...

    It's windows and it's a tablet, what do you expect. lol

  • BuyShared

    PHP version : 5.4.43
    Platform : Linux
    --------------------------------------
    test_math                 : 3.261 sec.
    test_stringmanipulation   : 3.119 sec.
    test_loops                : 1.870 sec.
    test_ifelse               : 1.466 sec.
    --------------------------------------
    Total time:               : 9.716 sec.
    

    Online.net kidechire

    PHP version : 5.6.11
    Platform : Linux
    --------------------------------------
    test_math                 : 3.931 sec.
    test_stringmanipulation   : 4.177 sec.
    test_loops                : 5.016 sec.
    test_ifelse               : 2.564 sec.
    --------------------------------------
    Total time:               : 15.688 sec.
    

    RunAbove

    PHP version : 5.5.27
    Platform : Linux
    --------------------------------------
    test_math                 : 1.814 sec.
    test_stringmanipulation   : 1.625 sec.
    test_loops                : 0.912 sec.
    test_ifelse               : 0.787 sec.
    --------------------------------------
    Total time:               : 5.138 sec.
    

    Vultr

    PHP version : 5.5.27
    Platform : Linux
    --------------------------------------
    test_math                 : 0.980 sec.
    test_stringmanipulation   : 0.989 sec.
    test_loops                : 0.582 sec.
    test_ifelse               : 0.329 sec.
    --------------------------------------
    Total time:               : 2.88 sec.
    

    Digital Ocean

    PHP version : 5.5.27
    Platform : Linux
    --------------------------------------
    test_math                 : 1.925 sec.
    test_stringmanipulation   : 1.915 sec.
    test_loops                : 1.107 sec.
    test_ifelse               : 0.642 sec.
    --------------------------------------
    Total time:               : 5.589 sec.
    
  • linuxthefishlinuxthefish Member
    edited August 2015

    @colm hhvm ftw! Still have trouble talking to it, sockets seems the fastest but still adds a few seconds delay...

    Same through lighttpd and sockets...

  • XNQXNQ Member

    HHVM, 2GB Dediserve

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 02:46:16
    Server : ?@?
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_Math                 : 0.460 sec.
    test_StringManipulation   : 0.742 sec.
    test_Loops                : 0.092 sec.
    test_IfElse               : 0.071 sec.
    --------------------------------------
    Total time:               : 1.365 sec.
    Thanked by 1dediserve
  • TrafficTraffic Member
    edited August 2015

    512 Vultr NJ - HHVM

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 01:09:55
    Server : ?@?
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_Math                 : 0.355 sec.
    test_StringManipulation   : 0.571 sec.
    test_Loops                : 0.103 sec.
    test_IfElse               : 0.056 sec.
    --------------------------------------
    Total time:               : 1.085 sec.
  • Were all you guys using HHVM before, or have you just installed it now?

  • hostnoob said: Were all you guys using HHVM before, or have you just installed it now?

    I had just finished setting up a PHP-FPM server and I have just switched them - I tried HHVM quite a while ago but it didn't work with one of the scripts I tried it with so I just used PHP-FPM. I didn't know there was a list of "included extensions" available, I will now for sure use it more often.

  • RunAbove's SandBox:

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 08:44:22
    Server : [email protected]
    PHP version : 5.4.43
    Platform : Linux
    --------------------------------------
    test_math                 : 1.525 sec.
    test_stringmanipulation   : 1.661 sec.
    test_loops                : 0.809 sec.
    test_ifelse               : 0.611 sec.
    --------------------------------------
    Total time:               : 4.606 sec.
    
  • Did anyone tried it on PHP7 already? I'm curious because PHP7 should be multiple times faster than PHP5.

  • @taronyu said:
    Did anyone tried it on PHP7 already? I'm curious because PHP7 should be multiple times faster than PHP5.

    Up, there is.

  • angrysnarlangrysnarl Member
    edited August 2015

    @taronyu

    PHP 7:

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 07:26:41
    Server : 
    PHP version : 7.0.0beta1
    Platform : Linux
    --------------------------------------
    test_ifelse               : 0.245 sec.
    test_loops                : 0.321 sec.
    test_stringmanipulation   : 0.385 sec.
    test_math                 : 0.239 sec.
    --------------------------------------
    Total time:               : 1.19 sec.
    
  • Semi-related, may improve performance: https://en.wikipedia.org/wiki/HipHop_for_PHP

  • jemekitejemekite Member
    edited August 2015

    linode 1024 with nginx and php 7 beta 2

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 13:28:40
    Server : [email protected]
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_ifelse               : 0.235 sec.
    test_loops                : 0.289 sec.
    test_stringmanipulation   : 0.412 sec.
    test_math                 : 0.282 sec.
    --------------------------------------
    Total time:               : 1.218 sec.
    

    HHVM

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 17:08:44
    Server : @
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.331 sec.
    test_stringmanipulation   : 0.545 sec.
    test_ifelse               : 0.049 sec.
    test_loops                : 0.095 sec.
    --------------------------------------
    Total time:               : 1.02 sec.
    
  • Is HHVM production ready, like PHP? I mean, if I install PHP-FPM, and tweak a couple things (or even if not), it works without any problems. Would anyone using it recommend it as a replacement for PHP?

  • @drazilox said:
    Is HHVM production ready, like PHP? I mean, if I install PHP-FPM, and tweak a couple things (or even if not), it works without any problems. Would anyone using it recommend it as a replacement for PHP?

    +1 , I have not even tested HHVM , but with the kind of reviews it gets i think it must be doing some really good mojo..

  • @taronyu said:
    Did anyone tried it on PHP7 already? I'm curious because PHP7 should be multiple times faster than PHP5.

    @asf did above

  • DerekDerek Member
    edited August 2015

    Decided to give this a try,

    This was done using desktop hardware, Spare g3258 multipler set to 48 and 1.4v. 2x Intel 730's in raid.

    The results were not tampered with, other then adding a no in the <(/)pre> tags

    I've done this via cli because fpm was increasing the results by around .2seconds.

    Edit, just in case you think I'm lying, http://i.imgur.com/z5JTsql.png

    Heres PHP 7

    root@derek-desktop:/root# php test.php
    PHP Notice:  Undefined index: SERVER_NAME in /root/test.php on line 71
    PHP Notice:  Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 17:57:32
    Server : @
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.177 sec.
    test_stringmanipulation   : 0.233 sec.
    test_loops                : 0.158 sec.
    test_ifelse               : 0.101 sec.
    --------------------------------------
    Total time:               : 0.669 sec.root@derek-desktop:/root# php test.php
    PHP Notice:  Undefined index: SERVER_NAME in /root/test.php on line 71
    PHP Notice:  Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 17:57:34
    Server : @
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.175 sec.
    test_stringmanipulation   : 0.235 sec.
    test_loops                : 0.159 sec.
    test_ifelse               : 0.101 sec.
    --------------------------------------
    Total time:               : 0.67 sec.root@derek-desktop:/root# php test.php
    PHP Notice:  Undefined index: SERVER_NAME in /root/test.php on line 71
    PHP Notice:  Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 17:57:35
    Server : @
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.174 sec.
    test_stringmanipulation   : 0.237 sec.
    test_loops                : 0.157 sec.
    test_ifelse               : 0.101 sec.
    --------------------------------------
    Total time:               : 0.669 sec.root@derek-desktop:/root# php test.php
    PHP Notice:  Undefined index: SERVER_NAME in /root/test.php on line 71
    PHP Notice:  Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 17:57:37
    Server : @
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.169 sec.
    test_stringmanipulation   : 0.236 sec.
    test_loops                : 0.160 sec.
    test_ifelse               : 0.112 sec.
    --------------------------------------
    Total time:               : 0.677 sec.

    Here's HHVM-NIGHTLY

    root@derek-desktop:/root# hhvm test.php
    
    Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_NAME in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 14:11:46
    Server : @
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.172 sec.
    test_stringmanipulation   : 0.304 sec.
    test_ifelse               : 0.026 sec.
    test_loops                : 0.051 sec.
    --------------------------------------
    Total time:               : 0.553 sec.root@derek-desktop:/root# hhvm test.php
    
    Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_NAME in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 14:11:49
    Server : @
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.173 sec.
    test_stringmanipulation   : 0.303 sec.
    test_ifelse               : 0.026 sec.
    test_loops                : 0.051 sec.
    --------------------------------------
    Total time:               : 0.553 sec.root@derek-desktop:/root# hhvm test.php
    
    Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_NAME in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 14:11:50
    Server : @
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.171 sec.
    test_stringmanipulation   : 0.310 sec.
    test_ifelse               : 0.026 sec.
    test_loops                : 0.051 sec.
    --------------------------------------
    Total time:               : 0.558 sec.root@derek-desktop:/root# hhvm test.php
    
    Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_NAME in /root/test.php on line 71
    
    Notice: Undefined index: SERVER_ADDR in /root/test.php on line 71
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-02 14:11:54
    Server : @
    PHP version : 5.6.99-hhvm
    Platform : Linux
    --------------------------------------
    test_math                 : 0.172 sec.
    test_stringmanipulation   : 0.303 sec.
    test_ifelse               : 0.026 sec.
    test_loops                : 0.051 sec.
    --------------------------------------
    Total time:               : 0.552 sec.
  • sinsin Member
    edited August 2015

    drazilox said: Is HHVM production ready, like PHP? I mean, if I install PHP-FPM, and tweak a couple things (or even if not), it works without any problems. Would anyone using it recommend it as a replacement for PHP?

    I'm just using it for Wordpress sites but I haven't encountered any issues, installing it was extremely easy. It takes a few seconds of "warming up" and then everything is blazing fast, you can also set php-fpm as a fallback.

  • Dediserve 2GB

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-03 03:40:29
    Server : -snip-
    PHP version : 5.6.9-0+deb8u1
    Platform : Linux
    --------------------------------------
    test_Math                 : 1.217 sec.
    test_StringManipulation   : 1.291 sec.
    test_Loops                : 0.827 sec.
    test_IfElse               : 0.623 sec.
    --------------------------------------
    Total time:               : 3.958 sec.
  • tommytommy Member
    edited August 2015

    AMD FX(tm)-8320 / 12 GB memory (local dev).

    Apache 2.4.16/PHP 5.6.11/

    Start : 2015-08-03 10:51:56
    Server : @
    PHP version : 5.6.11
    Platform : Linux
    --------------------------------------
    test_math                 : 1.195 sec.
    test_stringmanipulation   : 1.287 sec.
    test_loops                : 0.879 sec.
    test_ifelse               : 0.602 sec.
    --------------------------------------
    Total time:               : 3.963 sec.
    

    Intel i5-3330
    Apache/2.4.6 | PHP 5.6.11

    Start : 2015-08-03 10:51:39
    Server : @
    PHP version : 5.6.11
    Platform : Linux
    --------------------------------------
    test_math                 : 1.016 sec.
    test_stringmanipulation   : 1.053 sec.
    test_loops                : 0.755 sec.
    test_ifelse               : 0.753 sec.
    --------------------------------------
    Total time:               : 3.577 sec.
    
Sign In or Register to comment.