Created
August 22, 2011 09:07
-
-
Save mix3/1161981 to your computer and use it in GitHub Desktop.
eval_goto_bench.pl
This file contains hidden or 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
use Benchmark qw(cmpthese timethese); | |
cmpthese timethese(100000, { | |
eval => sub { | |
eval { | |
die; | |
}; | |
if($@){} | |
}, | |
goto => sub { | |
goto LABEL; | |
LABEL: | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ perl eval_goto_bench.pl