Skip to content

Commit

Permalink
Minor improvements to comparison graphs.
Browse files Browse the repository at this point in the history
strmem-benchmarks/

	* .gitignore: Ignore generated graphs.
	* analyzer.py (GroupAnalyzer:plotit): Adjust Y-axis range.

Signed-off-by: Jeremy Bennett <[email protected]>
  • Loading branch information
jeremybennett committed Jan 7, 2025
1 parent c3b2948 commit a226ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions strmem-benchmarks/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ build/
__pycache__/
# Generated reports
report-20*.pdf
*-speedup.pdf
# Intermediate temporary files
icount-*
4 changes: 3 additions & 1 deletion strmem-benchmarks/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit a226ffb

Please sign in to comment.