/usr/share/doc/libbit-vector-perl/examples/benchmk1.pl is in libbit-vector-perl 7.3-1+b2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #!/usr/bin/perl
use Benchmark;
sub init
{
delete $INC{'Carp.pm'};
delete $INC{'Exporter.pm'};
delete $INC{'overload.pm'};
delete $INC{'Bit/Vector/Overload.pm'};
delete $INC{'Bit/Vector.pm'};
delete $INC{'DynaLoader.pm'};
}
sub plain
{
init();
require Bit::Vector;
}
sub ovrld
{
init();
require Bit::Vector::Overload;
}
timethese
(
100,
{
plain => \&plain,
ovrld => \&ovrld
}
);
__END__
|