projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
bcd39bf
)
added 'get' in benchmark script
Tokuhiro Matsuno [Sat, 6 Dec 2008 08:55:30 +0000 (08:55 +0000)]
author/benchmark.pl
patch
|
blob
|
blame
|
history
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/
+ }
+);