bench.phps

#!/usr/bin/php5
<?
// bench.php
// Simple stuff I use for comparing execution time for different code.
// hellfairy - http://packy.se/
include './public_html/timer.php';
$count = 1000;

$start = gettimeofday();
for($i=0;$i<$count;$i++)
{
  // code stuff here
}
echo function_timer($start, gettimeofday(), 1)." microseconds\n";

?>