smbinterp/plots/scalability/hist.py
Stephen Mardson McQuay f47585735d made the labels of plots work better with how they are presented in the results chapter
--HG--
rename : plots/scalability/speedup.plt => plots/scalability/efficiency.plt
2011-05-30 22:49:24 -06:00

23 lines
426 B
Python

import sys
import shelve
import pickle
import numpy as np
if len(sys.argv) != 2:
print "usage: %s <interp.shelve>" % sys.argv[0]
sys.exit(1)
s = shelve.open(sys.argv[1])
d = dict(s)
s.close()
for line in (i[1] for i in sorted(d.iteritems(), key = lambda x: x[1]['stats']['participants'])):
run = line['stats']
print "#", run['participants']
x = np.array(run['tasks'].values())
for i in x:
print i
print