2004-10-20 23:02:16 +00:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
|
|
|
|
## This perl script generates the input to timer.pl, which in turn
|
|
|
|
## generates the input to plotting.pl, which generates performance
|
|
|
|
## graphs. :)
|
|
|
|
|
|
|
|
open(LOGICAL_THREADS, ">LOGICAL_THREADS.script" );
|
|
|
|
|
2004-10-27 01:40:09 +00:00
|
|
|
for(my $i = 1; $i < 10; $i ++) {
|
2005-03-12 22:11:18 +00:00
|
|
|
# my $total = 500000;
|
|
|
|
my $total = 50000;
|
2004-10-27 01:40:09 +00:00
|
|
|
|
|
|
|
my $thread_count = $i;
|
|
|
|
|
|
|
|
my $insert_count = $total / $i;
|
|
|
|
|
2005-03-12 22:11:18 +00:00
|
|
|
# print LOGICAL_THREADS "./logicalMultThreaded $thread_count $insert_count\n";
|
|
|
|
print LOGICAL_THREADS "./linearHashNTAMultiReader $thread_count $insert_count\n";
|
2004-10-27 01:40:09 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for(my $i = 10; $i <= 254; $i += 10) {
|
2005-03-12 22:11:18 +00:00
|
|
|
# my $total = 500000;
|
|
|
|
my $total = 50000;
|
2004-10-20 23:02:16 +00:00
|
|
|
my $thread_count = $i;
|
|
|
|
|
|
|
|
my $insert_count = $total / $i;
|
|
|
|
|
2005-03-12 22:11:18 +00:00
|
|
|
# print LOGICAL_THREADS "./logicalMultThreaded $thread_count $insert_count\n";
|
|
|
|
print LOGICAL_THREADS "./linearHashNTAMultiReader $thread_count $insert_count\n";
|
2004-10-20 23:02:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
close(LOGICAL_THREADS);
|