Skip to main content
CafeWebmaster

Main navigation

  • Tools
    • MD5 converter
    • SHA1 converter
    • Base64 encode
    • Base64 decode
    • HTML entities encode
    • HTML entities decode
    • Raw url encode
    • Raw url decode
    • UTF8 encode
    • UTF8 decode
    • Unix Time to Human Date converter
    • Remove duplicate lines
    • Sort text lines
    • Backwards - Mirrored Text
    • PiRaTe tExT
    • Your IP Address & Hostname
  • Forums
  • Free PHP Scripts
    • Image watermark with PHP
    • Page generation time with PHP
  • CSS
    • CSS hidden left menu
    • CSS horizontal menu
  • Free Fonts
  • Image Editors
  • Tutorials
    • Check password strength / safety with PHP and Regex
    • Cómo hacer que su sitio web popular!
    • How2 make a website popular
    • How2 secure your website
    • Kennwort Sicherheit mit PHP und Regex Prüfen
    • Page generation time and http-referrers with php
    • Redirect webpages with HTML, PHP, .htaccess, Java+Script, CGI-Perl, ASP.NET and ColdFusion
  • New
User account menu
  • Log in

Breadcrumb

  1. Home

Server Benchmark with PHP 5 : ThePlanet, Hosteurope, Hetzner

By n8coder, 16 April, 2010

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:

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

  • Log in to post comments
CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.