projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added 'get' in benchmark script
[gitmo/Mouse.git]
/
author
/
benchmark.pl
diff --git
a/author/benchmark.pl
b/author/benchmark.pl
index
bdc3de7
..
a931e8e
100644
(file)
--- a/
author/benchmark.pl
+++ b/
author/benchmark.pl
@@
-37,3
+37,12
@@
cmpthese(
qw/Moose Mouse/
}
);
+
+print "---- new,get\n";
+cmpthese(
+ 100000 => {
+ map { my $y = $_; $_ => sub { $y->new(n => 3)->n() } }
+ map { "${_}One" }
+ qw/Moose Mouse/
+ }
+);