Server Benchmark with PHP 5 : ThePlanet, Hosteurope, Hetzner

Submitted by n8coder on Fri, 04/16/2010 - 10:56

This is a small benchmark test / performance comparison with PHP 5 between ThePlanet, Hosteurope and Hetzner Servers. Servers are not same, and there are RAM difference but in this test RAM plays no big role, but CPU plays. The server from Hosteurope is a virtual server with min. 2GB ram guarantie. The other two are dedicated root servers. ThePlanet's OS is Redhat enterprise, The other two are using Debian.

Hetzner : Intel® Core™ i7-920 Quad-Core with 8GB Ram
Hosteurope: 8 Cores Intel® Xeon® with min 2GB or more
ThePlanet: 2x DualCore Intel(R) Xeon(TM) CPU 3.40GHz with 2GB

Benchmark PHP Code:

<?php
define
("STARTMICROTIME", array_sum( explode(' ', microtime() ) ) );
while(
$i++ < 999999) $temp_md5 = md5( rand(0,$i) );
$page_gen_time round(array_sum( explode(" ", microtime())) - STARTMICROTIME, 2);
echo
" \n PG Time: $page_gen_time --- \n\n"
?>

Results(average from 10 queries):

Hetzner AG: 1.04 seconds
Hosteurope: 1.77 seconds
Theplanet : 3.80 seconds

------------------------ 10 CPU Times from Hetzner Server:

HETZNER# php -f bench.php
PG Time: 0.89

HETZNER# php -f bench.php
PG Time: 0.9

HETZNER# php -f bench.php
PG Time: 1.52

HETZNER# php -f bench.php
PG Time: 0.9

HETZNER# php -f bench.php
PG Time: 0.9

HETZNER# php -f bench.php
PG Time: 0.91

HETZNER# php -f bench.php
PG Time: 0.87

HETZNER# php -f bench.php
PG Time: 0.88

HETZNER# php -f bench.php
PG Time: 1.44

HETZNER# php -f bench.php
PG Time: 1.25

------------------------ 10 CPU Times from Hosteurope Server:

HOSTEUROPE: php -f bench.php
PG Time: 1.79

HOSTEUROPE: php -f bench.php
PG Time: 1.71

HOSTEUROPE: php -f bench.php
PG Time: 1.74

HOSTEUROPE: php -f bench.php
PG Time: 1.74

HOSTEUROPE: php -f bench.php
PG Time: 1.72

HOSTEUROPE: php -f bench.php
PG Time: 1.91

HOSTEUROPE: php -f bench.php
PG Time: 1.72

HOSTEUROPE: php -f bench.php
PG Time: 1.74

HOSTEUROPE: php -f bench.php
PG Time: 1.81

HOSTEUROPE: php -f bench.php
PG Time: 1.78

------------------------ 10 CPU Times from ThePlanet Server:

ThePLANET# php -f bench.php
PG Time: 3.76

ThePLANET# php -f bench.php
PG Time: 3.9

ThePLANET# php -f bench.php
PG Time: 3.97

ThePLANET# php -f bench.php
PG Time: 4.06

ThePLANET# php -f bench.php
PG Time: 3.71

ThePLANET# php -f bench.php
PG Time: 3.67

ThePLANET# php -f bench.php
PG Time: 3.74

ThePLANET# php -f bench.php
PG Time: 3.76

ThePLANET# php -f bench.php
PG Time: 3.74

ThePLANET# php -f bench.php
PG Time: 3.75

ThePlanet (formerly Ev1Servers / RackShack) located in United States of America - USA
www.theplanet.com

Hetzner located in South Germany near Munich/München
www.hetzner.de

Hosteurope located in west Germany Cologne/Köln - NRW
www.hosteurope.de

Add new comment