Howdy, Stranger!

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


PHP Benchmark Script
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

sleddogsleddog Member
edited August 2015 in General

Anyone try this: http://www.php-benchmark-script.com/

My best result....

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2015-08-01 09:38:02
Server : [removed]
PHP version : 5.5.27-1+deb.sury.org~precise+1
Platform : Linux
--------------------------------------
test_math                 : 1.424 sec.
test_stringmanipulation   : 1.295 sec.
test_loops                : 0.643 sec.
test_ifelse               : 0.552 sec.
--------------------------------------
Total time:               : 3.914 sec.
  • Virtualization: OpenVz
  • Processor: Intel(R) Xeon(R) CPU E3-1270 V2 @ 3.50GHz
  • Cores: 4
  • Provider: WLS
Thanked by 14n0nx
«13

Comments

  • 4n0nx4n0nx Member
    edited August 2015
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 08:40:09
    Server : [email protected]
    PHP version : 5.5.9-1ubuntu4.11
    Platform : Linux
    --------------------------------------
    test_math                 : 0.850 sec.
    test_stringmanipulation   : 0.880 sec.
    test_loops                : 0.524 sec.
    test_ifelse               : 0.414 sec.
    --------------------------------------
    Total time:               : 2.668 sec.
    

    just nginx with php5-fpm so ..

    edit: CPU is i7-3770

    edit2: only one core in case it matters

    Thanked by 1sleddog
  • 4n0nx said: CPU is i7-3770

    Is that a lowend VM?

  • pnklzpnklz Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 09:41:47
    Server : [removed]
    PHP version : 5.4.39-0+deb7u2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.866 sec.
    test_stringmanipulation   : 0.839 sec.
    test_loops                : 0.665 sec.
    test_ifelse               : 0.417 sec.
    --------------------------------------
    Total time:               : 2.787 sec.
    
  • FredQcFredQc Member
    edited August 2015

    Ok, let's have some fun :P


    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 13:30:02
    Server : [email protected]
    PHP version : 5.6.10
    Platform : Linux
    --------------------------------------
    test_math                 : 0.700 sec.
    test_stringmanipulation   : 0.749 sec.
    test_loops                : 0.534 sec.
    test_ifelse               : 0.342 sec.
    --------------------------------------
    Total time:               : 2.325 sec.
    

    OLSWS and E3-1271v3. After some tests PHP 5.6.10 was revealed the fastest for this.

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 09:37:51
    Server : [email protected]
    PHP version : 5.3.3
    Platform : Linux
    --------------------------------------
    test_math                 : 1.883 sec.
    test_stringmanipulation   : 1.884 sec.
    test_loops                : 1.493 sec.
    test_ifelse               : 1.221 sec.
    --------------------------------------
    Total time:               : 6.481 sec.
    

    Lighttpd and E5-2620v2

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 09:49:18
    Server : [email protected]
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.536 sec.
    test_stringmanipulation   : 1.642 sec.
    test_loops                : 1.123 sec.
    test_ifelse               : 1.037 sec.
    --------------------------------------
    Total time:               : 5.338 sec.
    

    Lighttpd and L5420

  • E5 cPanel server, cloudlinux default limits

    Namecheap webhosting

    VestaCP on dual L5520, default config

  • angrysnarlangrysnarl Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 14:32:35
    Server :
    PHP version : 5.6.11
    Platform : Linux
    --------------------------------------
    test_math                 : 1.043 sec.
    test_stringmanipulation   : 1.087 sec.
    test_loops                : 0.585 sec.
    test_ifelse               : 0.472 sec.
    --------------------------------------
    Total time:               : 3.187 sec.
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 14:39:50
    Server : 
    PHP version : 5.6.11-1~dotdeb+zts+7.1
    Platform : Linux
    --------------------------------------
    test_math                 : 0.959 sec.
    test_stringmanipulation   : 0.950 sec.
    test_loops                : 0.585 sec.
    test_ifelse               : 0.379 sec.
    --------------------------------------
    Total time:               : 2.873 sec.
  • EvoBurst 4G

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 09:05:08
    Server : [email protected]
    PHP version : 5.4.43
    Platform : Linux
    --------------------------------------
    test_math                 : 1.093 sec.
    test_stringmanipulation   : 1.101 sec.
    test_loops                : 0.701 sec.
    test_ifelse               : 0.447 sec.
    --------------------------------------
    Total time:               : 3.342 sec.
    
  • hostnoobhostnoob Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 17:27:14
    Server : @
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.484 sec.
    test_stringmanipulation   : 1.491 sec.
    test_loops                : 0.781 sec.
    test_ifelse               : 0.881 sec.
    --------------------------------------
    Total time:               : 4.637 sec.

    Ramnode 128MB

  • --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 18:43:55
    Server : 
    PHP version : 5.5.23
    Platform : Linux
    --------------------------------------
    test_math                 : 1.104 sec.
    test_stringmanipulation   : 1.173 sec.
    test_loops                : 0.661 sec.
    test_ifelse               : 0.512 sec.
    --------------------------------------
    Total time:               : 3.45 sec.
    

    Spaceweb
    Hardware / Resources / User: 1x3,4GHZ core Xeon E3-1220 - 1x512MB ECC memory -1gbps connection

  • I think anything below 5 sec is awesome. Lots of VMs giv 10-15 sec which is perfectly acceptable IMO.

  • NomadNomad Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 20:17:46
    Server : bull.shit
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.092 sec.
    test_stringmanipulation   : 1.107 sec.
    test_loops                : 0.726 sec.
    test_ifelse               : 0.597 sec.
    --------------------------------------
    Total time:               : 3.522 sec.
    

    E3-1220v2 @ Apache

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 20:21:10
    Server : bull.shit
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.035 sec.
    test_stringmanipulation   : 1.093 sec.
    test_loops                : 0.714 sec.
    test_ifelse               : 0.589 sec.
    --------------------------------------
    Total time:               : 3.431 sec.
    

    E3-1220v2 @ Nginx

    I already had this ^^ Apache or Nginx doesn't make any difference in my case.

  • eastoncheastonch Member
    edited August 2015

    | PHP BENCHMARK SCRIPT |

    Start : 2015-08-01 17:27:16
    Server : earth
    PHP version : 5.4.41-0+deb7u1

    Platform : Linux

    test_math : 2.272 sec.
    test_stringmanipulation : 2.806 sec.
    test_loops : 1.058 sec.

    test_ifelse : 0.855 sec.

    Total time: : 6.991 sec.

    Digi Ocean 512M with FPM & Nginx

  • tr1ckytr1cky Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 20:24:23
    Server : [removed]
    PHP version : 5.6.9-0+deb8u1
    Platform : Linux
    --------------------------------------
    test_math                 : 0.654 sec.
    test_stringmanipulation   : 0.637 sec.
    test_loops                : 0.395 sec.
    test_ifelse               : 0.321 sec.
    --------------------------------------
    Total time:               : 2.007 sec.
    

    nginx + php5-fpm

    You gotta optimise your servers ;)

    Thanked by 1doghouch
  • nfnnfn Veteran

    PHP version : 5.6.11-1~dotdeb+7.1

    Platform : Linux

    test_math : 0.797 sec.
    test_stringmanipulation : 0.774 sec.
    test_loops : 0.533 sec.

    test_ifelse : 0.315 sec.

    Total time: : 2.419 sec.

    2GB [email protected]

  • martinandrinomartinandrino Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 14:51:36
    Server : @
    PHP version : 5.6.9-0+deb8u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.433 sec.
    test_stringmanipulation   : 1.557 sec.
    test_loops                : 1.172 sec.
    test_ifelse               : 1.104 sec.
    --------------------------------------
    Total time:               : 5.266 sec.
    

    ClickVPS.net Model S @ 1x Core 2.5GHz OVZ

  • tr1cky said: You gotta optimise your servers ;)

    Care to share? :)

    Thanked by 1drazilox
  • SadySady Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 19:22:42
    Server : myblogdomain.com@VPSIP
    PHP version : 5.4.43
    Platform : Linux
    --------------------------------------
    test_math                 : 0.936 sec.
    test_stringmanipulation   : 0.851 sec.
    test_loops                : 0.595 sec.
    test_ifelse               : 0.350 sec.
    --------------------------------------
    Total time:               : 2.732 sec.

    4 Cores of E3-1241v3 1GB $12 EthernetServer VPS with centminmod default config :)

  • nfnnfn Veteran

    @TinyTunnel_Tom said:
    GHz

    Thanks :)

  • NixtrenNixtren Member
    edited August 2015

    Guys, don't forget PHP 5.6 has built-in caching (OPCache), you should confirm if that's disabled, otherwise the results won't be fair :P

  • Are you guys running this through a webserver? or php5-cli?

  • sleddog said: Is that a lowend VM?

    No it's an OVZ VPS on my Hetzner dedi :)

  • nexusrainnexusrain Member
    edited August 2015
    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 21:49:31
    Server : @
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.830 sec.
    test_stringmanipulation   : 1.830 sec.
    test_loops                : 1.160 sec.
    test_ifelse               : 1.003 sec.
    --------------------------------------
    Total time:               : 5.823 sec.
    

    My laptop running Kali 1.1.0 with Intel Pentium P6200 (I know it's kinda old, but still working fine. Will buy a new one soon, got this one since 4 years or so now).

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 19:53:04
    Server : Prometeus VPS, 1,8GB Xen Special
    PHP version : 5.6.11-1~dotdeb+7.1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.562 sec.
    test_stringmanipulation   : 1.660 sec.
    test_loops                : 0.947 sec.
    test_ifelse               : 0.779 sec.
    --------------------------------------
    Total time:               : 4.948 sec.
    

    Production VPS with Prometeus in their IT location

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 19:55:39
    Server : BudgetVZ 128MB VPS in Miami
    PHP version : 5.6.11-1~dotdeb+7.1
    Platform : Linux
    --------------------------------------
    test_math                 : 0.931 sec.
    test_stringmanipulation   : 0.923 sec.
    test_loops                : 0.569 sec.
    test_ifelse               : 0.324 sec.
    --------------------------------------
    Total time:               : 2.747 sec.
    

    BudgetVZ VPS with 128MB RAM in their new Miami location

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 15:58:15
    Server : VPSDime 7$/y special
    PHP version : 5.4.41-0+deb7u1
    Platform : Linux
    --------------------------------------
    test_math                 : 1.134 sec.
    test_stringmanipulation   : 1.537 sec.
    test_loops                : 0.992 sec.
    test_ifelse               : 0.735 sec.
    --------------------------------------
    Total time:               : 4.398 sec.
    

    The 512MB VPS for 7$/y by VPSDime

    Pretty interesting!

  • nexusrain said: Edit: why does my post has such a terrible formatting :(

    You need to select the test results and then hit the C button above the post you are typing

  • @tr1cky said:
    --------------------------------------
    | PHP BENCHMARK SCRIPT |
    --------------------------------------
    Start : 2015-08-01 20:24:23
    Server : [removed]
    PHP version : 5.6.9-0+deb8u1
    Platform : Linux
    --------------------------------------
    test_math : 0.654 sec.
    test_stringmanipulation : 0.637 sec.
    test_loops : 0.395 sec.
    test_ifelse : 0.321 sec.
    --------------------------------------
    Total time: : 2.007 sec.

    nginx + php5-fpm

    You gotta optimise your servers ;)

    That performance is amazing :o

  • asfasf Member

    RunAbove - Sandbox M

    PHP 5.6.11

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 20:03:20
    Server : 
    PHP version : 5.6.11
    Platform : Linux
    --------------------------------------
    test_math                 : 1.514 sec.
    test_stringmanipulation   : 1.654 sec.
    test_loops                : 0.789 sec.
    test_ifelse               : 0.815 sec.
    --------------------------------------
    Total time:               : 4.772 sec.
    

    PHP 7.0.0beta2

    --------------------------------------
    |        PHP BENCHMARK SCRIPT        |
    --------------------------------------
    Start : 2015-08-01 20:02:15
    Server : 
    PHP version : 7.0.0beta2
    Platform : Linux
    --------------------------------------
    test_math                 : 0.427 sec.
    test_stringmanipulation   : 0.623 sec.
    test_loops                : 0.383 sec.
    test_ifelse               : 0.443 sec.
    --------------------------------------
    Total time:               : 1.876 sec.
    
  • doghouch said: That performance is amazing :o

    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

  • @asf said:
    RunAbove - Sandbox M

    Wow, is that 7.x install on Sandbox M as well?

  • @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

    dunno, look at @asf results above, PHP 7.x results are much better than 5.6x

  • asfasf Member

    @hostnoob
    ..yes, same vps. php-fpm+nginx

Sign In or Register to comment.