Skip to content

Instantly share code, notes, and snippets.

@ywindish
Created March 22, 2012 02:45
Show Gist options
  • Save ywindish/2155294 to your computer and use it in GitHub Desktop.
Save ywindish/2155294 to your computer and use it in GitHub Desktop.
Perl Benchmark
# http://codepad.org/Ee48yTys
use Benchmark;
$t0 = new Benchmark;
for (1..1000000) {}
$t1 = new Benchmark;
$td = timediff($t1, $t0);
print "the code took:",timestr($td),"\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment