|
|
@ -6,7 +6,7 @@ import seaborn as sns |
|
|
|
import matplotlib.pyplot as plt |
|
|
|
|
|
|
|
x_label = "Copy Type" |
|
|
|
y_label = "Time in Microseconds" |
|
|
|
y_label = "Throughput in GiB/s" |
|
|
|
var_label = "Thread Counts" |
|
|
|
thread_counts = ["1t", "2t", "4t", "8t", "12t"] |
|
|
|
thread_counts_nice = ["1 Thread", "2 Threads", "4 Threads", "8 Threads", "12 Threads"] |
|
|
@ -21,6 +21,13 @@ data = { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def calc_throughput(size_bytes,time_microseconds): |
|
|
|
time_seconds = time_microseconds * 1e-6 |
|
|
|
size_gib = size_bytes / (1024 ** 3) |
|
|
|
throughput_gibs = size_gib / time_seconds |
|
|
|
return throughput_gibs |
|
|
|
|
|
|
|
|
|
|
|
def index_from_element(value,array): |
|
|
|
for (idx,val) in enumerate(array): |
|
|
|
if val == value: return idx |
|
|
@ -56,7 +63,9 @@ def plot_mt_graph(file_paths, engine_label): |
|
|
|
engine_index = index_from_element(engine_label,engine_counts) |
|
|
|
engine_nice = engine_counts_nice[engine_index] |
|
|
|
|
|
|
|
data[engine_nice] = times |
|
|
|
throughput = [calc_throughput(1024*1024, t) for t in times] |
|
|
|
|
|
|
|
data[engine_nice] = throughput |
|
|
|
|
|
|
|
|
|
|
|
# Main function to iterate over files and create plots for the new benchmark |
|
|
|