diff --git a/benchmarks/results/11_kernel_launch_overhead.csv b/benchmarks/results/11_kernel_launch_overhead.csv new file mode 100644 index 0000000..f7a369f --- /dev/null +++ b/benchmarks/results/11_kernel_launch_overhead.csv @@ -0,0 +1,12 @@ +n_launches,ex_time +1,0.101 +10,0.404 +20,0.742 +30,1.083 +40,1.423 +50,1.762 +60,2.100 +70,2.438 +80,2.778 +90,3.116 +100,3.502 \ No newline at end of file diff --git a/benchmarks/tools/11_kernel_launch_overhead.py b/benchmarks/tools/11_kernel_launch_overhead.py new file mode 100644 index 0000000..21373fe --- /dev/null +++ b/benchmarks/tools/11_kernel_launch_overhead.py @@ -0,0 +1,23 @@ +import pandas as pd +import matplotlib.pyplot as plt +import matplotlib.font_manager as font_manager + +# Read the CSV data into a Pandas DataFrame +data = pd.read_csv("results/11_kernel_launch_overhead.csv") + +# Increase font size for labels and ticks +font_prop = font_manager.FontProperties(size=14) + +# Create the plot +plt.figure(figsize=(10, 6)) # Set the figure size +plt.plot(data['n_launches'], data['ex_time'], color='blue', marker='o', linewidth=2.3) # Plot the data + +# Set axis labels with increased font size +plt.xlabel('number of kernel launches', fontproperties=font_prop) +plt.ylabel('execution time (s)', fontproperties=font_prop) + +# Set title with increased font size +plt.title('Kernel Launch Overhead', fontproperties=font_prop) + +# Show the plot +plt.show()