The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

PURPOSE

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%    --

AUTHOR

Toby Inkster <tobyink@cpan.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.