10 if __name__ == '__main__':
17 # find config in results...
19 for (r, v) in RESULTS:
20 if r['db'] == db and r['threads'] == t:
25 plt.plot(THREADS, values)
26 #for (db, res) in zip(DBS[:-1], RESULTS):
27 # #plt.plot(THREADS, np.log(np.array(res)))
28 # #plt.plot(THREADS, res)
29 # #plt.plot(THREADS, np.array(res)/np.array(THREADS)) # per-core
30 # plt.plot(THREADS, np.log10(np.array(res)/np.array(THREADS))) # per-core
31 plt.xlabel('num threads')
32 plt.ylabel('txns/sec')
33 #plt.ylabel('ops/sec/core')
34 #plt.ylabel('$log_{10}$ ops/sec/thread')
35 plt.legend(DBS, loc='right')
36 plt.title('TPCC workload scale factor 10')
37 plt.savefig('.'.join(os.path.basename(f).split('.')[:-1] + ['pdf']))