DBIx-Class
view release on metacpan or search on metacpan
examples/Benchmarks/benchmark_hashrefinflator.pl view on Meta::CPAN
print " done\n\nBenchmarking - this can taka a LOOOOOONG time\n\n";
my %results;
for my $bch (@to_bench) {
Class::Unload->unload('DBIx::Class::ResultClass::HashRefInflator');
eval $bch->{code} or die $@;
$INC{'DBIx/Class/ResultClass/HashRefInflator.pm'} = $bch->{title};
for my $t (qw/simple complex/) {
my $label = "Timing $num_iters{$t} $t iterations of $bch->{desc}";
my $bench = Dumbbench->new(
initial_runs => 30,
target_rel_precision => 0.0005,
);
$bench->add_instances( Dumbbench::Instance::PerlSub->new (
name => $label, code => $bench{$t},
));
print $label;
( run in 0.709 second using v1.01-cache-2.11-cpan-71847e10f99 )