The following test case benchmarks performance between Moops and the more established MooseX::Declare by defining equilavent classes using each.
The benchmarked code includes object construction and destruction, accessor calls, method calls and type constraint checks.
Typical results (run on a fairly underpowered netbook) are:
Rate MXD Moops MXD 8.82/s -- -98% Moops 389/s 4307% --
If MooseX::XSAccessor is available, Moops becomes yet faster:
Rate MXD Moops MXD 8.65/s -- -98% Moops 449/s 5084% --
Toby Inkster <tobyink@cpan.org>.
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.
To install Moops, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moops
CPAN shell
perl -MCPAN -e shell install Moops
For more information on module installation, please visit the detailed CPAN module installation guide.