Webserver CPU Performance Test mit PHP

Hallo Freekies,

ich habe einen schnellen CPU Benchmark Test mit meinem neuen Server.  
Ich lasse 1 Million mal einen zufälligen MD5 string erstellt wird und an 
einem Variable zugewiesen wird. Das dauert genau 0,37 Sekunden. 
Das ist zwei Mal schneller als zb I7-920, weil es da fast 1 Sekunde dauert. 

Server eigenschaften:
CPU: Intel® Core™ i7-4770 Quad-Core Haswell
RAM: 32 GB DDR3 RAM
OS: Linux / Debian 7 
PHP: PHP 5.4.4-14+deb7u4 (cli) (built: Aug 23 2013 14:37:41)



$meine_beginn_zeit = array_sum( explode(' ', microtime() ) ) ;
while($i++ < 1000000) 
{ 
	$temp_md5 = md5( rand(0,$i) );
}
$gesamte_lauf_zeit =  round(array_sum( explode(" ", microtime())) - $meine_beginn_zeit, 2);

echo " \n\n\n Laufzeit: $gesamte_lauf_zeit --- \n\n\n"



Ich speciehere diese Code als benchmark.php und lasse mit shell laufen:

php -f benchmark.php

10 mal getestet und es war 9 mal 0,37 und ein mal 0,36 Sekunden. 

Comments

Ich teste gerade mit zwei Servern

Server 1: VServer mit 4 Cores und 12GB Ram

Dauer: 0.57 - 0.60 Sekunden

 

Server 2: Root Server, i7 mit 8 Cores, 64 GB Ram

Dauer: 0.18 Sekunden

 

Mit Xeon E5-1650 dauert 0,20 Sekunden.

Servertyp: Dediziert
CPU: Intel® Xeon® E5-1650 v3
RAM: 128 GB DDR4 ECC
Festplatte: 2 x 960 GB SSD DC

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Profile picture for user Guest
Permanenter Link

Mit "Intel Core i7-2600 Quad Core" dauert es ca 0,68 Sekunden. Hier sind die CPU-Daten mit "lscpu":

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 8
Thread(s) per core: 2
Core(s) per socket: 4
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Stepping: 9
CPU MHz: 1600.000
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K

Profile picture for user Guest
Permanenter Link

Mit Hosteurope "Virtual Server XXL" hat das Gleiche 1,58 Sekunden gedauert. Aber ich kann nicht CPU Info rausfinden. Weder lscpu noch "/dev/cpuinfo" sind möglich.

Suche

Neueste Kommentare

  • 2 days 12 hours ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 4 days 14 hours ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 1 week 4 days ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 3 weeks 3 days ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 3 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 3 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 3 weeks 1 day ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 3 weeks 1 day ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 2 months 1 week ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 3 months 2 weeks ago
    Linux mv: das Verschieben von 'new' nach 'old' ist nicht möglich: Das Verzeichnis ist nicht leer

    Hilft "cp -avf old new && rm -rvf old" nicht?