Return to Snippet

Revision: 26727
at May 8, 2010 06:55 by aahmed753


Initial Code
<?php
error_reporting(E_ALL | E_STRICT);
define('ITERATIONS', 2000000);
...
$start = microtime(true);
for ($i=0; $i < ITERATIONS; ++$i) {
  // something here we're testing.
}
$stop = microtime(true);
echo "Test name: " . ($stop - $start) . " seconds". PHP_EOL;
?>

Initial URL
http://www.garfieldtech.com/blog/magic-benchmarks

Initial Description


Initial Title
Benchmarking using PHP

Initial Tags


Initial Language
PHP