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

  • 1 month 3 weeks ago
    [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

    Same with Drush 13 + PHP 8.3

  • 1 month 3 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    Initializing...

    Error : Failed to install the required package 'RPM' by using APT. Please install it manually. 

    Exit


    Solution:

  • 1 month 3 weeks ago
    Acronis CyberProtect Agent For Linux (Strato Root Server)

    So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:

  • 2 months ago
    No route found for the specified format html. Supported formats: csv, json. (Drupal Routing)

    I have a view with a path like /my-content-export to export entivies as JSON or CSV.

  • 2 months ago
    InvalidArgumentException: The controller for URI "/admin/flush" is not callable.

    admin_toolbar 3.5.2 is the reason. Patch coming ...

  • 3 weeks ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

    Drupal 10.4:

  • 2 months 4 weeks ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr

    Tools & Settings >> Security Policy :

     Allow only secure FTPS connections 

  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

     

    /usr/sbin/mariadbd --help --verbose | grep "query.*size"
  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

    Commandline:

    systemctl restart mariadb
  • 4 months 1 week ago
    MariaDB Server Performance Optimieren

    After my changes in /etc/mysql/db-performance.cnf