}
sub kernbench_plot_results ($$$) {
- my ($dataf,$num_cols,$pfile)= @_;
+ my ($dfiles,$num_cols,$pfile)= @_;
+ my $f= keys @$dfiles;
+ my $s= join(' ',@$dfiles);
my $h= new IO::File "> $pfile.gp" or die "$!";
print $h <<EOF;
set title 'Kernbench Results for $flight.$job'
$common_plot_opts
set bmargin 6
+NDATA=$num_cols
+NHOSTS=$f
SKIP_COL=1
-NCOL=$num_cols
+NCOL=1*(NHOSTS*NDATA)
HWIDTH=1.0/(NCOL+1.0)
cols=''
-plot for [c=SKIP_COL+1:SKIP_COL+NCOL] '$dataf' using c:xtic(1) with histograms title columnhead, \\
- for [c=SKIP_COL+1:SKIP_COL+NCOL] '' every ::1 using 0:c:c with labels notitle offset first -HWIDTH*(NCOL/2.0)+HWIDTH/2.0+(c-(SKIP_COL+1))*HWIDTH, character 2 rotate by 90
+do for [h=0:NHOSTS-1] {
+ do for [c=1+h*(NDATA+SKIP_COL)+SKIP_COL:1+h*(NDATA+SKIP_COL)+SKIP_COL+NDATA-1] {
+ cols = cols . sprintf("\%d ", c);
+ }
+}
+plot for [c in cols] '< paste $s' using int(c):xtic(1) with histograms title columnhead, \\
+ for [i=1:words(cols)] '' every ::1 using 0:int(word(cols,i)):int(word(cols,i)) with labels notitle offset first -HWIDTH*(NCOL/2.0)+HWIDTH/2.0+(i-1)*HWIDTH, character 2 rotate by 90
EOF
close($h);
close FH;
}
unixbench_plot_results(\@dfiles,$ncols,"$stash/$job-PLOT") if $bn eq "unixbench";
+ kernbench_plot_results(\@dfiles,$ncols,"$stash/$job-PLOT") if $bn eq "kernbench";
}
sub resetboot () {
sub process () {
my $resf= "$stash/$gho->{Name}--$lresfile";
- my $dataf= "$resf-DATA";
+ my @dataf= "$resf-DATA";
my $plotf= "$resf-PLOT";
kernbench_process_results(\$results,$resf);
- kernbench_print_results($results,$dataf);
+ kernbench_print_results($results,$dataf[0]);
my $ncols= keys $results->{'Elapsed Time'}{'Result'};
- kernbench_plot_results($dataf,$ncols,$plotf);
+ kernbench_plot_results(\@dataf,$ncols,$plotf);
}
fetch();