4 # This script will iterate through each benchmark 5 times, looking up 500
5 # random records each time. Results will be printed to STDOUT.
7 my @benchmarks=('getdata-steve', 'getdata-sergey');
8 my $numrecords=$ARGV[0];
10 ($numrecords) || ($numrecords=50);
11 ($numindb) || ($numindb=79998);
15 foreach (@benchmarks) {
17 for ($i=1; $i<=$iterations; $i++) {
18 my $timer=`/usr/bin/time -f "%E" perl $_ $numrecords 0 $numindb 2>&1`;