- Timestamp:
- Jun 27, 2023, 4:45:40 PM (16 months ago)
- Branches:
- master
- Children:
- a1f0cb6
- Parents:
- 917e1fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/colby_parsons_MMAth/benchmarks/channels/plotData.py
r917e1fd r14e1053 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 64 experiment_duration = 10 67 experiment_duration = 10.0 65 68 name = "" 69 title = "" 66 70 var_name = "" 67 71 sendData = [0.0 for j in range(numVariants)] … … 74 78 if currBench == Bench.Unset: 75 79 if line == "contend:": 76 name = "Channel Contention" 80 name = "Channel_Contention" 81 title = "Channel Contention" 77 82 currBench = Bench.Contend 78 83 elif line == "zero:": … … 126 131 if currVariant == numVariants: 127 132 fig, ax = plt.subplots(layout='constrained') 128 plt.title(name + " Benchmark") 129 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)") 130 139 plt.xlabel("Cores") 140 ax.yaxis.set_major_formatter(ticks.FuncFormatter(sci_format)) 131 141 for idx, arr in enumerate(data): 132 142 plt.errorbar( procs, arr, [bars[idx][0], bars[idx][1]], capsize=2, marker=next(marker) ) 133 143 marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' )) 134 plt.yscale("log")144 # plt.yscale("log") 135 145 # plt.ylim(1, None) 136 146 # ax.get_yaxis().set_major_formatter(ticks.ScalarFormatter())
Note: See TracChangeset
for help on using the changeset viewer.