Changeset dbae916 for doc/theses
- Timestamp:
- Mar 14, 2023, 4:21:05 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 1afd9ccb, 360bfe41, 6e6989c
- Parents:
- 5217569 (diff), c19ca4b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/actors/plotData.py
r5217569 rdbae916 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 … … 162 171 plt.xticks(procs) 163 172 ax.legend(names) 164 # fig.savefig("plots/" + name + ".png")173 # fig.savefig("plots/" + machineName + name + ".png") 165 174 plt.savefig("plots/" + machineName + name + ".pgf") 166 175 fig.clf()
Note: See TracChangeset
for help on using the changeset viewer.