Compares the speed of the constructor in four equivalent classes built using different tools:
In both Moo examples, the following patch was applied, which will hopefully make it into mainstream Moo releases soon.
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 3140/s -- -47% -51% -62% Moo_TT 5947/s 89% -- -8% -28% Moose 6458/s 106% 9% -- -21% Moose_TT 8220/s 162% 38% 27% --
Toby Inkster <email@example.com>.
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.