App::Benchmark::Accessors - Benchmark accessor generators
None - just run the test suite
This distribution runs benchmarks on various accessor generators. The following generators are being benchmarked:
accessors
The benchmarks are being run as part of the test suite; see 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 t/versions.t reports the version numbers of these modules.
t/versions.t
The t/construction.t file benchmarks object creation, t/get.t benchmarks getter methods and t/set.t benchmarks setter methods.
t/construction.t
t/get.t
t/set.t
Not every benchmark is run on every module; for example, Object::Tiny doesn't create setter methods, and 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 Devel::NYTProf first to see where your real bottlenecks are.
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org.
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
Marcel Grünauer, <marcel@cpan.org>
<marcel@cpan.org>
Copyright 2008 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Benchmark::Accessors, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Benchmark::Accessors
CPAN shell
perl -MCPAN -e shell install App::Benchmark::Accessors
For more information on module installation, please visit the detailed CPAN module installation guide.