- Timestamp:
- Aug 31, 2023, 11:31:15 PM (2 years ago)
- Branches:
- master
- Children:
- 950c58e
- Parents:
- 92355883 (diff), 686912c (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/channels/plotData.py
r92355883 r2a301ff 20 20 'font.size': 16 21 21 }) 22 marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' )) 22 marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' )) 23 24 def sci_format(x, pos): 25 return '{:.1e}'.format(x).replace('+0', '') 23 26 24 27 readfile = open(sys.argv[1], "r") … … 62 65 procCount = 0 63 66 currVariant = 0 67 experiment_duration = 10.0 64 68 name = "" 69 title = "" 65 70 var_name = "" 66 71 sendData = [0.0 for j in range(numVariants)] … … 73 78 if currBench == Bench.Unset: 74 79 if line == "contend:": 75 name = "Channel Contention" 80 name = "Channel_Contention" 81 title = "Channel Contention" 76 82 currBench = Bench.Contend 77 83 elif line == "zero:": … … 107 113 108 114 lineArr = line.split() 109 tempData[count] = float(lineArr[-1]) 115 tempData[count] = float(lineArr[-1]) / experiment_duration 110 116 count += 1 111 117 if count == numTimes: … … 125 131 if currVariant == numVariants: 126 132 fig, ax = plt.subplots(layout='constrained') 127 plt.title(name + " Benchmark") 128 plt.ylabel("Throughput (channel operations)") 133 if title != "": 134 plt.title(title + " Benchmark") 135 title = "" 136 else: 137 plt.title(name + " Benchmark") 138 plt.ylabel("Throughput (channel operations per second)") 129 139 plt.xlabel("Cores") 140 ax.yaxis.set_major_formatter(ticks.FuncFormatter(sci_format)) 130 141 for idx, arr in enumerate(data): 131 142 plt.errorbar( procs, arr, [bars[idx][0], bars[idx][1]], capsize=2, marker=next(marker) ) 132 143 marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' )) 133 plt.yscale("log")144 # plt.yscale("log") 134 145 # plt.ylim(1, None) 135 146 # ax.get_yaxis().set_major_formatter(ticks.ScalarFormatter())
Note:
See TracChangeset
for help on using the changeset viewer.