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-28 21:03:58 (GMT)
committer Sascha Silbe <sascha-org-sugar-git@silbe.org>2010-02-28 21:03:58 (GMT)
commit1b55fb6979abc7ae325ab0e4820cf9d2ea254f6f (patch)
treec290a9d9695257682b6fc112e993c328027bd2b7
parent504fc47341c2518c407ec29930a1773ed431e69a (diff)
benchmark plots: use alternating labels ('tics') instead of abbreviating themHEADmaster
-rwxr-xr-xbenchmarks/gen-plots17
1 files changed, 10 insertions, 7 deletions
diff --git a/benchmarks/gen-plots b/benchmarks/gen-plots
index 9d6d43a..a2a678a 100755
--- a/benchmarks/gen-plots
+++ b/benchmarks/gen-plots
@@ -27,21 +27,24 @@ def genOpVsTimePlot(stats, ftype) :
print "set key inside right"
print "set boxwidth 0.93 relative"
print "set style fill solid"
- print "set style histogram clustered gap 2"
+ print "set style histogram clustered gap 3"
print "set autoscale yfixmax"
print "set xrange [-.5:6.6]"
print "set ylabel 'Runtime [s]'"
- print "set xlabel 'Operation'"
+ print "set xlabel ' ' offset 0,-1"
print "set xtics scale 0"
- print "plot "+",".join(["'-' using 1:xtic(2) with histograms title '%s'" % (vcs,) for vcs in vcsNames])
- for vcs in vcsNames :
- printInlineData([(stats[vcs][lName+"Time"], sName) for (lName, sName) in zip(opNames, shortOpNames)])
+ print "set x2tics scale 0"
+ print "set xtics nomirror ("+",".join(['"%s" %d' % (opName, idx) for (idx, opName) in enumerate(opNames) if (idx % 2) == 1])+")"
+ print "set x2tics nomirror offset graph 0,-1.12 ("+",".join(['"%s" %d' % (opName, idx) for (idx, opName) in enumerate(opNames) if (idx % 2) == 0])+")"
+ print "plot "+",".join(["'-' using 1 with histograms title '%s'" % (vcs,) for vcs in vcsNames])
+ for vcs in vcsNames:
+ printInlineData([(stats[vcs][opName+"Time"],) for opName in opNames])
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)])
+ print "plot '-' using 1 with histograms title '%s'" % (vcs,)
+ printInlineData([(stats[vcs][opName+"Time"],) for opName in opNames])
def genOpVsSizePlot(stats, ftype) :
vcsNames = stats.keys()