Bijection-XS
view release on metacpan or search on metacpan
lib/Bijection/XS.pm view on Meta::CPAN
my $int = 10000;
Bijection::inverse(Bijection::biject($int));
},
'XS' => sub {
my $int = 10000;
Bijection::XS::inverse(Bijection::XS::biject($int));
}
});
Benchmark: timing 10000000 iterations of Bijection, XS...
Bijection: 8 wallclock secs ( 8.74 usr + 0.05 sys = 8.79 CPU) @ 1137656.43/s (n=10000000)
XS: 2 wallclock secs ( 2.48 usr + 0.01 sys = 2.49 CPU) @ 4016064.26/s (n=10000000)
=head1 AUTHOR
LNATION, C<< <email at lnation.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-bijection-xs at rt.cpan.org>, or through
( run in 0.853 second using v1.01-cache-2.11-cpan-96521ef73a4 )