Colouring-In-XS
view release on metacpan or search on metacpan
lib/Colouring/In/XS.pm view on Meta::CPAN
},
'XS' => sub {
my $start = '#ffffff';
my $colour = Colouring::In::XS->new($start);
$colour->toRGB();
}
});
...
Benchmark: timing 1000000 iterations of Colouring::In, XS...
Colouring::In: 13 wallclock secs (12.36 usr + 0.00 sys = 12.36 CPU) @ 80906.15/s (n=1000000)
XS: 0 wallclock secs ( 0.59 usr + 0.01 sys = 0.60 CPU) @ 1666666.67/s (n=1000000)
=head1 AUTHOR
LNATION, C<< <email at lnation.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-colouring-in-xs at rt.cpan.org>, or through
( run in 0.608 second using v1.01-cache-2.11-cpan-71847e10f99 )