Ignore:
Timestamp:
Aug 31, 2023, 11:31:15 PM (2 years ago)
Author:
JiadaL <j82liang@…>
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.
Message:

Resolve conflict

File:
1 edited

Legend:

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

    r92355883 r2a301ff  
    6060name = "Aggregate Lock"
    6161var_name = ""
     62experiment_duration = 10.0
    6263sendData = [0.0 for j in range(numVariants)]
    6364data = [[0.0 for i in range(len(procs))] for j in range(numVariants)]
     
    8081   
    8182    lineArr = line.split()
    82     tempData[count] = float(lineArr[-1])
     83    tempData[count] = float(lineArr[-1]) / experiment_duration
    8384    count += 1
    8485    if count == numTimes:
     
    8687        data[currVariant][procCount] = currMedian
    8788        lower, upper = st.t.interval(0.95, numTimes - 1, loc=np.mean(tempData), scale=st.sem(tempData))
    88         bars[currVariant][0][procCount] = currMedian - lower
    89         bars[currVariant][1][procCount] = upper - currMedian
     89        bars[currVariant][0][procCount] = max( 0, currMedian - lower )
     90        bars[currVariant][1][procCount] = max( 0, upper - currMedian )
    9091        count = 0
    9192        procCount += 1
     
    99100                fig, ax = plt.subplots(layout='constrained')
    100101                plt.title(name + " Benchmark: " + str(currLocks) + " Locks")
    101                 plt.ylabel("Throughput (entries)")
     102                plt.ylabel("Throughput (critical section entries per second)")
    102103                plt.xlabel("Cores")
    103104                for idx, arr in enumerate(data):
Note: See TracChangeset for help on using the changeset viewer.