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   9.26/s    --  -98%
        Moops  487/s 5157%    --

If MooseX::XSAccessor is available, Moops becomes yet faster:

                Rate   MXD Moops
        MXD   9.26/s    --  -99%
        Moops  637/s 6779%    --


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.