Digest::Crc32 /
Digest-Crc32
(0.01)
Documentation confuses CRC32 and Crc32.
Interface is object oriented without any excuse or justification.
and it is SLOOOOOOOOOOOOOOOOOOOOOOOOOOOOW.
More than 2000 times slower than the String::CRC32 module.
the following benchmark is running against a 168854 byte MP3 file:
perl -le '
use strict;
my $file = shift;
my $data = do{open my $fh, $file or die;local $/;<$fh>};
use Digest::Crc32;
use String::CRC32;
my $digcrc = Digest::Crc32->new;
use Benchmark;
timethese(-60,
{
DIG => sub { $digcrc->strcrc32($data) },
STR => sub { crc32($data) },
})' current/pubc/aaam.mp3
Benchmark:
running
DIG, STR
for at least 60 CPU seconds
...
DIG: 61 wallclock secs (60.27 usr + 0.00 sys = 60.27 CPU) @ 0.88/s (n=53)
STR: 64 wallclock secs (62.86 usr + 0.00 sys = 62.86 CPU) @ 2170.39/s (n=136431)
andk - 2005-03-18T07:38:17 (permalink)
1 out of 1 found this review helpful.
Was this review helpful to you?
Yes
No

