use strict;
use warnings;
use lib "$FindBin::Bin/../lib";
+use lib "$FindBin::Bin/../t/lib";
use Benchmark qw[cmpthese timethese];
use CGI qw[];
use HTTP::Body qw[];
use IO::Handle qw[];
use IO::File qw[O_RDONLY SEEK_SET];
-use YAML qw[LoadFile];
+use PAML qw[LoadFile];
my ( $headers, $content, $message );
foreach my $benchmark ( @benchmarks ) {
- $headers = LoadFile("$FindBin::Bin/../$benchmark-headers.yml");
+ $headers = LoadFile("$FindBin::Bin/../$benchmark-headers.pml");
$content = IO::File->new( "$FindBin::Bin/../$benchmark-content.dat", O_RDONLY )
or die $!;
printf( "Benchmark : %s\n", $headers->{'Benchmark'} ) if $headers->{'Benchmark'};
print "\n";
- cmpthese( -1, $benchmarks );
+ timethese( -1, $benchmarks );
printf( "%s\n", "-" x 80 ) if @benchmarks > 1;
}