|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 27/27] ts-bench-hostcmp-post: add plotting facilities
From: Dario Faggioli <raistlin@xxxxxxxx>
in order to have an additional graph, comparing host and
guests performance when running kernbench.
Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
Cc: Wei Liu <wei.liu2@xxxxxxxxxx>
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
Osstest/Benchmarking.pm | 17 +++++++++++++----
ts-bench-hostcmp-post | 1 +
ts-kernbench-reslts | 6 +++---
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/Osstest/Benchmarking.pm b/Osstest/Benchmarking.pm
index 301af08..1be9c97 100644
--- a/Osstest/Benchmarking.pm
+++ b/Osstest/Benchmarking.pm
@@ -175,7 +175,9 @@ sub kernbench_print_results ($$) {
}
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;
@@ -184,12 +186,19 @@ set output '$pfile.png'
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);
diff --git a/ts-bench-hostcmp-post b/ts-bench-hostcmp-post
index 383bac0..ee9cf0a 100755
--- a/ts-bench-hostcmp-post
+++ b/ts-bench-hostcmp-post
@@ -65,6 +65,7 @@ sub plot_hostcmp () {
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 () {
diff --git a/ts-kernbench-reslts b/ts-kernbench-reslts
index 113a4ce..b9ee393 100755
--- a/ts-kernbench-reslts
+++ b/ts-kernbench-reslts
@@ -62,13 +62,13 @@ sub fetch() {
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();
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |