0 AND empty($ttimes)) { echo 'error'; die; } $itimes = explode('_', $ttimes); if(count($itimes)<$test) { echo 'error 2'; die; } } $itimes[$test] = number_format($total_time,0); $test_results = ''; $ttimes2 = ''; $TimesSum=0; for($i = 0; $i <= $test; $i++) { $itimes[$i] = (int)$itimes[$i]; $TimesSum += $itimes[$i]; $j=$i+1; $test_results .= 'Test #' . $j . ' completed in ' . $itimes[$i] . ' ms.
'; $ttimes2 .= $itimes[$i]; if($i < $test) $ttimes2 .= '_'; } $test2 = $test+1; $tquery = 'test=' . $test2 . '&ttimes=' . $ttimes2; $tquery2 = $tquery . '&stop=1;'; $AverageAll = round($TimesSum/$test2); $iterations2 = $iterations-1; sort($itimes); $lowest = $itimes[0]; $highest = $itimes[$test]; if(isset($_GET['stop'])) $stop = $_GET['stop']; if(isset($stop)) $test = $iterations; ?> '; ?> Free PHP Benchmark Performance Script from Free-Webhosts.com

Free PHP Benchmark Performance Script

Lowest time: $lowest ms , Highest time : $highest ms
\n"; echo "Average of all $j times: $AverageAll ms
\n"; if($test2>2) { $j-=2; $AverageMid = round(($TimesSum-$lowest-$highest)/$j); echo "Average of middle $j times: $AverageMid ms
\n"; } echo '
Begin again'; if($test<$iterations2) echo ' | Stop | Doing ' . $iterations . ' iterations. Refreshing in 5 seconds...
'; ?>

Copyright © 2006 , Free Web Hosting (Free-Webhosts.com)