aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-09 12:25:01 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-09 13:14:31 -0700
commit3038c80308b93394f7a9178d9b7adc7a5e0c28d6 (patch)
treed5bcb200a4b90be2fd9e19edeb223b374423574d /tools
parenta14313aec10633f6c3a16eb2e80a73e406ca5a01 (diff)
Load benchmark results from JSON files
Diffstat (limited to 'tools')
-rwxr-xr-xtools/benchmark-conf-to-json.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/benchmark-conf-to-json.py b/tools/benchmark-conf-to-json.py
index ce61ee4a..033a0f94 100755
--- a/tools/benchmark-conf-to-json.py
+++ b/tools/benchmark-conf-to-json.py
@@ -196,6 +196,7 @@ if __name__ == '__main__':
'NumCpus': int(values[7]),
'NumCores': int(values[8]),
'NumThreads': int(values[9]),
+ 'Legacy': False,
}
bench.update(parse_new_style_bench_value(values[0]))
if len(values) >= 11:
@@ -215,6 +216,7 @@ if __name__ == '__main__':
elif len(values) >= 2:
bench = {
'BenchmarkResult': float(values[0]),
+ 'Legacy': True,
}
cpu_info = parse_old_style_cpu_info(values[1].replace(",", "."), key, section)