X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=benchmarks%2Fsimple_class.pl;h=f0061f1a3b59cde2b1fa5f360b1324087dda8a87;hb=366abb63a74af7c8a6eb6390f30d60a6bdfca414;hp=bb8aef1c76b8db15ffd414746c7aee03705f82d9;hpb=7623f7745394bab6122a18b42da2d35897510f2f;p=gitmo%2FMoose.git diff --git a/benchmarks/simple_class.pl b/benchmarks/simple_class.pl index bb8aef1..f0061f1 100644 --- a/benchmarks/simple_class.pl +++ b/benchmarks/simple_class.pl @@ -7,24 +7,24 @@ use Benchmark::Forking qw[cmpthese]; =pod -This compares the burden of a basic Moose -class to a basic Class::MOP class. +This compares the burden of a basic Moose +class to a basic Class::MOP class. -It is worth noting that the basic Moose -class will also create a type constraint -as well as export many subs, so this comparison +It is worth noting that the basic Moose +class will also create a type constraint +as well as export many subs, so this comparison is really not fair :) =cut -cmpthese(5_000, - { +cmpthese(5_000, + { 'w/out_moose' => sub { eval 'package Bar; use metaclass;'; }, 'w_moose' => sub { eval 'package Baz; use Moose;'; - }, + }, } );