summaryrefslogtreecommitdiff
path: root/scripts/benchmark/benchmark.py
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-01-26 20:38:11 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-01-26 20:38:11 +0100
commitada762f66878817d949c25221438b90de448e06d (patch)
treea40f6b16ad173e9a0b2f6cdb7e9c48b5fc75a562 /scripts/benchmark/benchmark.py
parentcaebe8a9d52712d86bd7adcc7cf2448beab0fe0e (diff)
Minor displaying improvements to the graph plotting scripts
Diffstat (limited to 'scripts/benchmark/benchmark.py')
-rw-r--r--scripts/benchmark/benchmark.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/benchmark/benchmark.py b/scripts/benchmark/benchmark.py
index d84d5d98..0bb37c10 100644
--- a/scripts/benchmark/benchmark.py
+++ b/scripts/benchmark/benchmark.py
@@ -148,7 +148,9 @@ def benchmark_single(benchmark, comparisons, platform, device, num_runs, precisi
# Retrieves the data from the benchmark settings
file_name_suffix = "_tight" if tight_plot else ""
pdf_file_name = os.path.join(output_folder, benchmark_name.lower() + "_plot" + file_name_suffix + ".pdf")
- titles = [utils.precision_to_letter(precision) + b["name"].upper() + " " + b["title"] for b in benchmarks]
+ titles = [b["title"] if "BATCHED" in b["name"].upper() else
+ utils.precision_to_letter(precision) + b["name"].upper() + " " + b["title"]
+ for b in benchmarks]
x_keys = [b["x_keys"] for b in benchmarks]
y_keys = [["%s_%d" % (b["y_key"], i) for i in library_ids] for b in benchmarks]
x_labels = [b["x_label"] for b in benchmarks]