diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-04-15 19:15:17 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2009-04-15 19:15:17 +0530 |
commit | c2d10a4cbd48f60f70c56466f70867f867fb41ed (patch) | |
tree | 341a1dbdc43203397a33aea4efa46d5c0b18bc56 | |
parent | 26b84ac17b32b85504ac2a642bea8b7ab63e2dfc (diff) | |
download | alloc-perf-c2d10a4cbd48f60f70c56466f70867f867fb41ed.tar.gz alloc-perf-c2d10a4cbd48f60f70c56466f70867f867fb41ed.tar.xz alloc-perf-c2d10a4cbd48f60f70c56466f70867f867fb41ed.zip |
Add gnuplot script that draws bar graphs for results
The results from running the test via the run_tests.sh script are not
yet formatted the way this gnuplot script needs them to be, but when
formatted so, this script can be used to draw the bar graphs.
My knowledge on gnuplot is elementary; just about 1h worth of searching
and reading the demo files and this is a modified script I picked up
from the gnuplot website. More customisations are surely possible, like
piping the resulting image to image processors and dumping a png
directly instead of 'copy to clipboard'->paste in gimp->save.
The run_results.txt file that this script parses should look like this:
filesystem posix-fallocate mmap chunk-4096 chunk-8192 posix-fallocate mmap chunk-4096 chunk-8192
ext2 74 96 761 81 33 37 37 36
ext3-writeback 87 97 202 93 34 40 39 36
The first set of 4 columns contains seconds; the 2nd set contains fragments.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r-- | gnuplot-script.gnu | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gnuplot-script.gnu b/gnuplot-script.gnu new file mode 100644 index 0000000..62e8dc2 --- /dev/null +++ b/gnuplot-script.gnu @@ -0,0 +1,19 @@ +# set terminal png transparent nocrop enhanced font arial 8 size 420,320 +# set output 'histograms.2.png' +# Script from http://gnuplot.sourceforge.net/demo_4.1/histograms.html + +set title "Performance of Allocating a Zeroed File on Different File Systems - 4GiB file" +set boxwidth 0.9 absolute +set style fill solid 1.00 border -1 +set style histogram clustered gap 1 title offset character 0, 0, 0 +set datafile missing '-' +set style data histograms +set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, 0, 0 +set xlabel "File System" +set ylabel "Seconds" +plot 'run_results.txt' using 2:xtic(1) ti col, '' u 3 ti col, '' u 4 ti col, '' u 5 ti col + +pause -1 + +set ylabel "Fragments" +plot 'run_results.txt' using 6:xtic(1) ti col, '' u 7 ti col, '' u 8 ti col, '' u 9 ti col |