PHP Code for easy Server Benchmarking

Code:

<?php
$time1 = microtime(1);

while( $i++ < 10000000){ // 10m
  $rand_number = rand(1,999);
  // other stuff, math, if-else, array, md5, preg* etc
}

$time2 = microtime(1);


echo $time2 - $time1;

 

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare