aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/lld.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 17:59:23 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-11 17:59:23 +0200
commit84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (patch)
treee406322fb73570d5e1fbf5104326a8a8be2d2b0f /src/benchmarks/lld.py
parentc36a2b00e6a487f988a7286ccb9c8968a937f30c (diff)
downloadallocbench-84374b4b4e41c4bb7896092c10098b5e6b5f68c1.tar.gz
allocbench-84374b4b4e41c4bb7896092c10098b5e6b5f68c1.zip
explicitly collect binary versions
There is no generic way to retrieve the version of a binary. Not everyone followes GNU cli guidelines and supports "--version". The larson benchmark for example reads input from stdin when started with "larson --version" blocking the Benchmark.prepare() call.
Diffstat (limited to 'src/benchmarks/lld.py')
-rw-r--r--src/benchmarks/lld.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/benchmarks/lld.py b/src/benchmarks/lld.py
index bcedced..97ef545 100644
--- a/src/benchmarks/lld.py
+++ b/src/benchmarks/lld.py
@@ -25,6 +25,7 @@ import sys
import matplotlib.pyplot as plt
from src.benchmark import Benchmark
+import src.facter
from src.util import download_reporthook
@@ -51,6 +52,9 @@ class BenchmarkLld(Benchmark):
def prepare(self):
super().prepare()
+ # save lld version
+ self.results["facts"]["versions"]["lld"] = src.facter.exe_version("ld.lld", "-v")
+
test_dir = "lld-speed-test"
test_archive = f"{test_dir}.tar.xz"
if not os.path.isdir(test_dir):