Compares the speed of the constructor in four equivalent classes built using different tools:
For both Moose and Moo, Type::Tiny type constraints are clearly faster than the conventional approach:
Rate Moo_MXTML Moo_TT Moose Moose_TT Moo_MXTML 3412/s -- -33% -49% -60% Moo_TT 5119/s 50% -- -23% -39% Moose 6636/s 94% 30% -- -21% Moose_TT 8452/s 148% 65% 27% --
(Tested versions: Type::Tiny 0.003_16, Moose 2.0604, Moo 1.002000, and MooX::Types::MooseLike 0.16.)
Toby Inkster <firstname.lastname@example.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.