2005-03-21 22:33:03 +00:00
|
|
|
#! /usr/bin/perl -w
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
sub jfdi {
|
|
|
|
|
|
|
|
my $bn_ref = shift;
|
|
|
|
my $exe_ref = shift;
|
|
|
|
my $complete_output = shift;
|
|
|
|
my $eval_x = shift;
|
|
|
|
my $eval_y = shift;
|
2005-03-23 08:05:21 +00:00
|
|
|
# if(-e $complete_output) {
|
|
|
|
# warn "$complete_output exists--skipping\n";
|
|
|
|
# return;
|
|
|
|
# }
|
2005-03-21 22:33:03 +00:00
|
|
|
|
|
|
|
my @baseNames = @{$bn_ref};
|
|
|
|
my @exeNames = @{$exe_ref};
|
|
|
|
|
|
|
|
my $exec = "mkdir $complete_output\n";
|
|
|
|
print $exec;
|
|
|
|
`$exec`;
|
|
|
|
$exec = "ln -s ../$complete_output.def $complete_output/\n";
|
|
|
|
print $exec;
|
|
|
|
`$exec`;
|
|
|
|
|
|
|
|
for(my $i =0 ; $i < @baseNames; $i++) {
|
|
|
|
$exec = "grep CI $complete_output.out | grep $exeNames[$i] | ci-parser.pl --force '$eval_x' '$eval_y' > $complete_output/$complete_output-$baseNames[$i].dat\n";
|
|
|
|
print $exec;
|
|
|
|
`$exec`;
|
|
|
|
}
|
2005-03-22 20:57:51 +00:00
|
|
|
`cd $complete_output ; plotting.pl $complete_output | R --no-save ; cd ..`
|
2005-03-21 22:33:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# parse the output generated by timer.pl when is it run using generateScripts.pl's output
|
|
|
|
|
2005-03-22 20:57:51 +00:00
|
|
|
my @baseNames = qw(LLADD_NTA_HASH LLADD_FAST_HASH BDB_HASH );
|
|
|
|
my @exeNames = qw(linearHashNTAThreaded logicalHash bdbHashThreaded);
|
2005-03-21 22:33:03 +00:00
|
|
|
my $complete_output = "BULK_LOAD";
|
2005-03-22 20:57:51 +00:00
|
|
|
jfdi(\@baseNames, \@exeNames, $complete_output, '$arg[1]', '$time');
|
2005-03-21 22:33:03 +00:00
|
|
|
|
2005-03-22 20:57:51 +00:00
|
|
|
@baseNames = qw(LLADD_ARRAY_LIST LLADD_LINKED_LIST LLADD_RECORDID BDB_RAW);
|
|
|
|
@exeNames = qw(arrayListSet pageOrientedList rawSet bdbHashThreaded);
|
|
|
|
$complete_output = "BULK_LOAD_RAW";
|
|
|
|
jfdi(\@baseNames, \@exeNames, $complete_output, '$arg[1]', '$time');
|
2005-03-21 22:33:03 +00:00
|
|
|
|
|
|
|
@baseNames = qw(LLADD_HASH_TPS BDB_HASH_TPS);
|
|
|
|
@exeNames = qw(linearHashNTAThreaded bdbHashThreaded);
|
|
|
|
$complete_output = "TPS";
|
2005-03-22 20:57:51 +00:00
|
|
|
jfdi(\@baseNames, \@exeNames, $complete_output, '$arg[0]', '($arg[0]*$arg[1])/$time');
|
2005-03-21 22:33:03 +00:00
|
|
|
|
2005-03-22 20:57:51 +00:00
|
|
|
@baseNames = qw(LLADD_HASH_TPS);
|
|
|
|
@exeNames = qw(linearHashNTAThreaded);
|
|
|
|
$complete_output = "LLADD_HASH_TPS";
|
2005-03-21 22:33:03 +00:00
|
|
|
jfdi(\@baseNames, \@exeNames, $complete_output, '$arg[0]', '($arg[0]*$arg[1])/$time');
|
2005-03-22 20:57:51 +00:00
|
|
|
|