App-Benchmark-Accessors
view release on metacpan or search on metacpan
lib/App/Benchmark/Accessors.pm view on Meta::CPAN
=item Moose
mutable and immutable
=item Mouse
mutable and immutable
=item Class::Accessor
=item Class::Accessor::Fast
=item Class::Accessor::Fast::XS
=item Class::XSAccessor::Compat
=item Class::Accessor::Complex
=item Class::Accessor::Constructor
=item Class::Accessor::Classy
=item Class::Accessor::Lite
=item Mojo::Base
=item Class::MethodMaker
=item Object::Tiny
=item Spiffy
=item Class::Spiffy
=item C<accessors>
=item Class::XSAccessor
=item Class::XSAccessor::Array
=item Object::Tiny
=item Rose
=item Rubyish::Attribute
=back
The benchmarks are being run as part of the test suite; see L<App::Benchmark>.
This way you can look at this distribution's CPAN testers page to see the
benchmark results on many different platforms and for many different perl
versions.
The C<t/construction.t> file benchmarks object creation, C<t/get.t> benchmarks
getter methods and C<t/set.t> benchmarks setter methods.
Not every benchmark is run on every module; for example, L<Object::Tiny>
doesn't create setter methods, and L<accessors> doesn't generate constructors.
Each benchmark test file takes an optional numeric parameter that is used as
the number of iterations.
It's probably a good idea not to read too much into these benchmarks; they
could be seen as micro-optimization. However, if you have a complex object
hierarchy and create lots of objects and run many many getters/setters on
them, they could help to save some time. But be sure to use L<Devel::NYTProf>
first to see where your real bottlenecks are.
=head1 AUTHORS
The following person is the author of all the files provided in
this distribution unless explicitly noted otherwise.
Marcel Gruenauer C<< <marcel@cpan.org> >>, L<http://marcelgruenauer.com>
=head1 COPYRIGHT AND LICENSE
The following copyright notice applies to all the files provided in
this distribution, including binary files, unless explicitly noted
otherwise.
This software is copyright (c) 2008 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
( run in 0.350 second using v1.01-cache-2.11-cpan-71847e10f99 )