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 ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Das geht auch:

          $this->operator = $break->operator ?? '' ;
  • 1 month 1 week ago
    Bootstrap 5 subtheme is not properly configured. This may be caused by a problem with file or directory permissions.
  • 1 month ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    It works too:

    • web/core/modules/views/src/Plugin/views/argument/NumericArgument.php 

    Line 63, 96 :

  • 1 month 3 weeks ago
    Site URI : http://default (Drupal, how2 update config?)

    Add this line to drupalroot/vendor/drush/drush/drush.yml

  • 2 months 3 weeks ago
    Webserver CPU Performance Test mit PHP

    Time: 0,19 

    CPU: AMD Ryzen 7 PRO 3700 8-Core Processor

  • 4 months 2 weeks ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Line 63, 99 :

  • 5 months 1 week ago
    Drupal + Basic_Auth Problem : You do not have permission to access this page (Sie haben keine Zugriffsberechtigung für diese Seite. )

    My problem was:

  • 5 months 1 week ago
    Drupal Upgrade (Drupal 9 » Drupal 10)

    I had this exact issue and your site was the only place I found the fix.

    It'd be nice if the module developer applied your fix though.

    Good work! Much appreciated!

  • 6 months 2 weeks ago
    The datasource with ID 'elstut--entity:node' could not be retrieved for index (Drupal, Solr)

    Hier ist die Lösung. (/admin/config/search/search-api/server/solr_server/edit)

    Multisite-Kompatibilität
     + Nur Ergebnisse von dieser Seite beziehen
     

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

     

    Ich bekomme diese Fehlermeldung: