From a226ffb1f221aa7af4b2d8b2ee8808dd631892bd Mon Sep 17 00:00:00 2001 From: Jeremy Bennett Date: Tue, 7 Jan 2025 16:17:17 +0000 Subject: [PATCH] Minor improvements to comparison graphs. strmem-benchmarks/ * .gitignore: Ignore generated graphs. * analyzer.py (GroupAnalyzer:plotit): Adjust Y-axis range. Signed-off-by: Jeremy Bennett --- strmem-benchmarks/.gitignore | 1 + strmem-benchmarks/analyzer.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/strmem-benchmarks/.gitignore b/strmem-benchmarks/.gitignore index 452d21b..510eacc 100644 --- a/strmem-benchmarks/.gitignore +++ b/strmem-benchmarks/.gitignore @@ -7,5 +7,6 @@ build/ __pycache__/ # Generated reports report-20*.pdf +*-speedup.pdf # Intermediate temporary files icount-* \ No newline at end of file diff --git a/strmem-benchmarks/analyzer.py b/strmem-benchmarks/analyzer.py index feed9e6..31848be 100644 --- a/strmem-benchmarks/analyzer.py +++ b/strmem-benchmarks/analyzer.py @@ -26,6 +26,7 @@ import matplotlib.ticker as ticker import os.path import statistics +import sys class RunData: """A class to hold one row of CSV data.""" @@ -266,7 +267,8 @@ def plotit(self): ax.set_xlabel('Data size/bytes') ax.set_ylabel('Speedup') ax.grid(which='major', axis='y') - ax.set_ylim(0, 1.5) + # This is rather hard-coded for now! + ax.set_ylim(0, 4.0) handles, labels = ax.get_legend_handles_labels() ax.legend(handles, labels, loc='upper right') qid = self._args.get('qemulist')[1]