added 'get' in benchmark script
[gitmo/Mouse.git] / author / benchmark.pl
index bdc3de7..a931e8e 100644 (file)
@@ -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/
+    }
+);