Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-org-sugar-git@silbe.org>2010-02-24 01:30:52 (GMT)
committer Sascha Silbe <sascha-org-sugar-git@silbe.org>2010-02-24 01:30:52 (GMT)
commitecdd879b34e29ac2344e262d27fc31feaa44c70d (patch)
tree0829d7af5aa924509a90d64618b38a0a6113a8df
parentf79e7619d6561d46642f8752a1c6fcb19a0faa30 (diff)
fine-tune plot output
-rwxr-xr-xbenchmarks/gen-plots25
1 files changed, 17 insertions, 8 deletions
diff --git a/benchmarks/gen-plots b/benchmarks/gen-plots
index 3918b70..db119f2 100755
--- a/benchmarks/gen-plots
+++ b/benchmarks/gen-plots
@@ -3,7 +3,7 @@ import re
import sys
opNames=["createRepo", "checkoutFirst", "commit", "checkoutIntermediate", "createBranch", "checkoutBranch", "commitBranch"]
-shortOpNames=["create", "checkout", "commit", "intermediate", "branch", "checkoutB", "commitB"]
+shortOpNames=["create", "checkout", "commit", "checkoutInterm.", "branch", "checkoutBr.", "commitBr."]
multiOpNames=["commit", "checkoutFirst", "checkoutBranch", "commitBranch"]
def formatInline(datum) :
@@ -23,10 +23,11 @@ def genOpVsTimePlot(stats, ftype) :
vcsNames.sort()
print "set output 'output/op-vs-time.%s'" % (ftype,)
- print "set key outside right"
+ print "set key inside right"
print "set style fill solid"
print "set style histogram clustered gap 2"
print "set autoscale yfixmax"
+ print "set xrange [-.5:6.6]"
print "set ylabel 'Runtime [s]'"
print "set xlabel 'Operation'"
print "set xtics scale 0"
@@ -35,6 +36,7 @@ def genOpVsTimePlot(stats, ftype) :
printInlineData([(stats[vcs][lName+"Time"], sName) for (lName, sName) in zip(opNames, shortOpNames)])
for vcs in vcsNames :
+ print "set style histogram clustered gap 1"
print "set output 'output/op-vs-time-%s.%s'" % (vcs,ftype)
print "plot '-' using 1:xtic(2) with histograms title '%s'" % (vcs,)
printInlineData([(stats[vcs][lName+"Time"], sName) for (lName, sName) in zip(opNames, shortOpNames)])
@@ -48,6 +50,7 @@ def genOpVsSizePlot(stats, ftype) :
print "set key inside left"
print "set autoscale ymax"
print "set autoscale y2max"
+ print "set xrange [-.5:3.6]"
print "set yrange [0:]"
print "set y2range [0:]"
print "set ylabel 'Repository size [MB]'"
@@ -62,15 +65,16 @@ def genOpVsSizePlot(stats, ftype) :
print "plot "+",".join(["'-' using 1:xtic(2) with histograms title '%s'" % (vcs,) for vcs in vcsNames])
for vcs in vcsNames :
dset = stats[vcs]
- printInlineData([(dset["repoSizeAfter"+lName[0].upper()+lName[1:]]/1024, sName)
- for (lName, sName) in zip(opNames, shortOpNames)
+ printInlineData([(dset["repoSizeAfter"+lName[0].upper()+lName[1:]]/1024, lName)
+ for lName in opNames
if not lName.startswith("checkout")])
for vcs in vcsNames :
+ print "set style histogram clustered gap 1"
print "set output 'output/op-vs-size-%s.%s'" % (vcs,ftype)
print "plot '-' using 1:xtic(2) with histograms title '%s'" % (vcs,)
- printInlineData([(stats[vcs]["repoSizeAfter"+lName[0].upper()+lName[1:]]/1024, sName)
- for (lName, sName) in zip(opNames, shortOpNames)
+ printInlineData([(stats[vcs]["repoSizeAfter"+lName[0].upper()+lName[1:]]/1024, lName)
+ for lName in opNames
if not lName.startswith("checkout")])
@@ -80,11 +84,14 @@ def genTotalsPlot(stats, ftype) :
print "reset"
print "set output 'output/total.%s'" % (ftype,)
- print "set multiplot layout 1,2"
+ print "set multiplot"
+ print "set size 0.42,1"
+ print "set origin 0,0"
print "unset key"
print "set style fill solid"
print "set style histogram clustered gap 2"
- print "set autoscale yfixmax"
+ print "set autoscale ymax"
+ print "set xrange [-.4:.5]"
print "set yrange [0:]"
print "set ylabel 'Runtime [s]'"
print "unset xlabel"
@@ -97,6 +104,8 @@ def genTotalsPlot(stats, ftype) :
print "set key outside right"
print "set ylabel 'Repository size [MB]'"
+ print "set size 0.58,1"
+ print "set origin 0.42,0"
print "plot "+",".join(["'-' using 1:xtic(2) with histograms title '%s'" % (vcs) for vcs in vcsNames])
for vcs in vcsNames :
dset = stats[vcs]