Created
July 8, 2012 06:35
-
-
Save clairvy/3069674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Benchmark; | |
my $a; | |
my $b; | |
my $c; | |
Benchmark::timethese(10000000, { | |
'zenchi' => sub { | |
++$a; | |
}, | |
'kouchi' => sub { | |
$c++; | |
}, | |
'equal_plus' => sub { | |
$b = $b + 1; | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment