def all_elas(): rlist = [5, 10, 25, 50, 75, 100, 200] rex = {k: F.ExprAnl(port=6391+i) for i, k in enumerate(rlist)} for k, e in rex.items(): print('Loading', k) e.load(min(750, len(e.conf))) name = 'rtime250_%d' % k eid = db.get_expid(name) db.adhoc('select swname, start, time, cpu from sw where expid=%d' % eid) allboot = {k: C.elas_boot(v, 1000, 'dsw', limit=151000) for k,v in rex.items()} plots = [{k: v[s] for k,v in allboot.items()} for s in range(5)] for i, p in enumerate(plots): P.scats(p, 'Elas_%d'%i)
def plot_elas(): rlist=['rtime250_5', 'rtime250_10', 'rtime250_20', 'rtime250_25', 'rtime250_50', 'rtime250_75', 'rtime250_100', 'rtime250_200'] # rlist=['rtime100_20', 'rtime100_100', 'rtime250_10', 'rtime250_20', 'rtime250_50', 'rtime250_100', 'rtime250_200'] costlabels={ # 'rtime100_100': '100ps/100/%d'%(1367+32), # 'rtime100_20': '100ps/20/%d'%(1315+32), 'rtime250_5': '250ps/5/%d'%(923+114), 'rtime250_10': '250ps/10/%d'%(1351+95), 'rtime250_100': '250ps/100/%d'%(1711+40), 'rtime250_20': '250ps/20/%d'% (825+109), 'rtime250_25': '250ps/25/%d'% (1300+80), 'rtime250_75': '250ps/75/%d'% (1400+80), 'rtime250_200': '250ps/200/%d'%(1561+29), 'rtime250_50': '250ps/50/%d'%(1555+52)} data = time_comp(rlist, step=1000) for k,v in data.items(): P.scats(v, 'ElasticityCost-'+k, xlim=(0,5), labels=costlabels, xlabel='Time (in hours) Legend= SimTime/#Jobs/TotalCost')