Changeset c74372f
- Timestamp:
- Mar 9, 2023, 2:16:12 PM (21 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- a29477f
- Parents:
- 52be2664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/actors/plotData.py
r52be2664 rc74372f 53 53 Static = 7 54 54 Dynamic = 8 55 Mem = 9 55 56 56 57 nameSet = False … … 90 91 name = "Dynamic" 91 92 currBench = Bench.Dynamic 93 elif line == "mem": 94 name = "ExecutorMemory" 95 currBench = Bench.Mem 92 96 else: 93 97 print("Expected benchmark name") … … 98 102 continue 99 103 100 if currBench == Bench.Static or currBench == Bench.Dynamic :104 if currBench == Bench.Static or currBench == Bench.Dynamic or currBench == Bench.Mem: 101 105 if not nameSet: 102 106 nameSet = True … … 116 120 if currBench == Bench.Static: 117 121 fileName += "SendStatic" 122 elif currBench == Bench.Dynamic: 123 fileName += "SendDynamic" 118 124 else: 119 fileName += " SendDynamic"125 fileName += "ExecutorMem" 120 126 f = open(fileName, 'w') 121 f.write(" & ".join(map(lambda a: str(int(a)) + 'ns', sendData))) 127 if currBench == Bench.Mem: 128 f.write(" & ".join(map(lambda a: str(int(a/1000)) + 'MB', sendData))) 129 else: 130 f.write(" & ".join(map(lambda a: str(int(a)) + 'ns', sendData))) 122 131 123 132 # reset … … 161 170 plt.ylim(0, None) 162 171 ax.legend(names) 163 # fig.savefig("plots/" + name + ".png")172 # fig.savefig("plots/" + machineName + name + ".png") 164 173 plt.savefig("plots/" + machineName + name + ".pgf") 165 174 fig.clf()
Note: See TracChangeset
for help on using the changeset viewer.