X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11concurrency-benchmarks.git;a=blobdiff_plain;f=silo%2Fbenchmarks%2Fplotter.py;fp=silo%2Fbenchmarks%2Fplotter.py;h=cf35280334bea705d1cc56c7e3a4242d34c6ad7d;hp=0000000000000000000000000000000000000000;hb=19b84c667216ff74f1b747e18b5542444dc54716;hpb=72045f68e6d1ad46133bdc507b409b676ce64957 diff --git a/silo/benchmarks/plotter.py b/silo/benchmarks/plotter.py new file mode 100644 index 0000000..cf35280 --- /dev/null +++ b/silo/benchmarks/plotter.py @@ -0,0 +1,16 @@ +import matplotlib +matplotlib.use('Agg') +import pylab as plt + +import sys + +if __name__ == '__main__': + (_, fname, oname) = sys.argv + execfile(fname) + for name, data in zip(DBS, RESULTS): + plt.plot(THREADS, data) + plt.xlabel('num threads') + plt.ylabel('ops/sec') + plt.title('') + plt.legend(DBS, loc='lower right') + plt.savefig(oname)