FormValidator-Lite
view release on metacpan or search on metacpan
author/benchmark2.pl view on Meta::CPAN
use Modern::Perl;
use Benchmark ':all';
use CGI;
use FormValidator::Lite;
my $C = 1000;
my $q = CGI->new;
$q->param( param1 => 'ABCD' );
my $t = timeit(
$C,
sub {
my $result = FormValidator::Lite->new($q)->check(
param1 => [ 'NOT_BLANK', 'ASCII', [ 'LENGTH', 2, 5 ] ],
);
}
);
say timestr($t);
( run in 0.847 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )