Ignore:
Timestamp:
Jun 27, 2023, 4:45:40 PM (11 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
a1f0cb6
Parents:
917e1fd
Message:

first draft of full waituntil chapter and conclusion chapter. Lots of graph/plotting utilities cleanup. Reran all CFA actor benchmarks after recent changes. Small changes to actor.tex in performance section

Location:
doc/theses/colby_parsons_MMAth/benchmarks/channels
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/channels/plotData.py

    r917e1fd r14e1053  
    2020    'font.size': 16
    2121})
    22 marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' ))
     22marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' ))
     23
     24def sci_format(x, pos):
     25    return '{:.1e}'.format(x).replace('+0', '')
    2326
    2427readfile = open(sys.argv[1], "r")
     
    6265procCount = 0
    6366currVariant = 0
    64 experiment_duration = 10
     67experiment_duration = 10.0
    6568name = ""
     69title = ""
    6670var_name = ""
    6771sendData = [0.0 for j in range(numVariants)]
     
    7478    if currBench == Bench.Unset:
    7579        if line == "contend:":
    76             name = "Channel Contention"
     80            name = "Channel_Contention"
     81            title = "Channel Contention"
    7782            currBench = Bench.Contend
    7883        elif line == "zero:":
     
    126131            if currVariant == numVariants:
    127132                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)")
    130139                plt.xlabel("Cores")
     140                ax.yaxis.set_major_formatter(ticks.FuncFormatter(sci_format))
    131141                for idx, arr in enumerate(data):
    132142                    plt.errorbar( procs, arr, [bars[idx][0], bars[idx][1]], capsize=2, marker=next(marker) )
    133143                marker = itertools.cycle(('o', 's', 'D', 'x', 'p', '^', 'h', '*', 'v' ))
    134                 plt.yscale("log")
     144                # plt.yscale("log")
    135145                # plt.ylim(1, None)
    136146                # ax.get_yaxis().set_major_formatter(ticks.ScalarFormatter())
Note: See TracChangeset for help on using the changeset viewer.