view TOOLS/perlbench.pl @ 22139:3a3effa718fd

r22104: Add global field dominance flag instead of duplicating this "everywhere" r22107: Move -vo gl suboptions that should be irrelevant for the average user r22108: formatting fixes for r22104 r22113: insert line break for readability r22123: tinterlace mode 4 leaves height unchanged. r22127: Fix vqscale description to match at least somewhat the code. r22137: formatting/wording r22138: wording/formatting r22150: key-fifo-size default changed
author voroshil
date Mon, 05 Feb 2007 19:07:19 +0000
parents 5cbbf47cae1e
children
line wrap: on
line source

#!/usr/bin/perl -w
use strict;
use constant CMD => "./fastmem2-k7";

sub dobench {
	my $i;
	my ($runs, $sleep, $command) = @_;
	for($i = 0; $i < $runs; $i++) {
		sleep $sleep;
		system $command;
	}
}

print "Single run of sse bench with 1sec sleep:\n";
&dobench(1,1,CMD);
print "Sleeping 10seconds before starting next bench!\n";
sleep 10;		
print "10 runs of sse bench with 0sec sleep:\n";
&dobench(10,0,CMD);
print "Sleeping 10seconds before starting next bench!\n";
sleep 10;		
print "10 runs of sse bench with 1sec sleep:\n";
&dobench(10,1,CMD);
print "Sleeping 10seconds before starting next bench!\n";
sleep 10;		
print "10 runs of sse bench with 2sec sleep:\n";
&dobench(10,2,CMD);
print "Sleeping 10seconds before starting next bench!\n";
sleep 10;		
print "10 runs of sse bench with 3sec sleep:\n";
&dobench(10,3,CMD);
print "Bench finished!\n";