Server/Localhost Speed Test

Cosmic

Manners maketh man
Joined
Jul 4, 2009
Messages
12,888
Reaction score
951
FP$
29
Would you mind running this PHP code and pasting the results on a localhost/server?

Code:
<?php
$time = microtime();
for ($i = 0; $i < 20000; $i++);
$now = microtime();
$score = ($now - $time) * 10000;
echo $score;
?>

Basically, what it does is it sees how many microseconds it takes to preform that 20,000 iteration loop. I want to know what the average is. Just create a .php file and paste this in it and view it in your browser. If you really want to go hardcore, then add a couple zeros to the "20000" number in the code. Thanks!

Mine returns: 49.68
And on my hosting account: 19

Run it a couple times to eliminate error if you want.
 
Back
Top Bottom