Skip to content
Snippets Groups Projects

Add batch approach for matrix multiplication

1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -5,7 +5,7 @@ import seaborn
@@ -5,7 +5,7 @@ import seaborn
import pandas
import pandas
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
seaborn.set_theme(style="whitegrid", palette="colorblind")
seaborn.set_theme(palette=seaborn.color_palette("bright", n_colors=10), style="whitegrid")
def parse_args():
def parse_args():
parser = ArgumentParser(description="Combine benchmark metrics from Google Benchmarks Framework")
parser = ArgumentParser(description="Combine benchmark metrics from Google Benchmarks Framework")
@@ -47,7 +47,9 @@ def create_summary_plot(metrics, outplot_name):
@@ -47,7 +47,9 @@ def create_summary_plot(metrics, outplot_name):
time_unit = metrics.time_unit[0]
time_unit = metrics.time_unit[0]
grid = seaborn.FacetGrid(metrics, col="architecture", row="parameters")
grid = seaborn.FacetGrid(metrics, col="architecture", row="parameters")
grid.map(seaborn.barplot, "compiler_version", "cpu_time", "name")
 
grid.set_titles(template="Arch: {row_name} - {col_name}")
 
grid.map(seaborn.barplot, "compiler_version", "cpu_time", "method")
grid.set_ylabels(f"CPU time({time_unit})")
grid.set_ylabels(f"CPU time({time_unit})")
grid.add_legend()
grid.add_legend()
grid.savefig(outplot_name + ".png")
grid.savefig(outplot_name + ".png")
Loading