Benchmark::Featureset::ParamCheck - compare different parameter validation modules
use Benchmark::Featureset::ParamCheck; use Module::Runtime qw(use_module); my @impl = Benchmark::Featureset::ParamCheck->implementations; my $testdata = Benchmark::Featureset::ParamCheck->trivial_test_data; for my $i (@impl) { # Check the data 10,000 times. use_module($i)->run_check(10_000, $testdata); }
A whole bunch of implementations for sub paramater checking.
Each implementation provides a method to check a hash of the form shown in the example. It should have three keys, 'integer' (value should be an integer), 'hashes' (value should be an arrayref of hashrefs), and 'object' (value should be an object with print and close methods).
print
close
This is intended for benchmarking.
implementations
List of implementations.
trivial_test_data
Returns trivial test data.
complex_test_data
Returns complex test data.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Benchmark-Featureset-ParamCheck.
Parameter validation libraries: Data::Validator, MooseX::Params::Validate, Params::Check, Params::ValidationCompiler, Ref::Util::XS, Type::Params.
Type constraint libraries: Moose, Mouse, Specio, Type::Tiny.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2017 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.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Benchmark::Featureset::ParamCheck, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Benchmark::Featureset::ParamCheck
CPAN shell
perl -MCPAN -e shell install Benchmark::Featureset::ParamCheck
For more information on module installation, please visit the detailed CPAN module installation guide.