1
0
forked from Mirror/wren

Fix deprecated Python timing in benchmark & give more error info. (#844)

- Note: process_time gives CPU time used and perf_counter is absolute time used.
- Looks to have noise of about 1-2%.
This commit is contained in:
Bill Quith
2021-01-31 05:40:20 +00:00
committed by GitHub
parent af5227f03b
commit 0fa16a20ec
9 changed files with 19 additions and 19 deletions

View File

@ -182,9 +182,9 @@ def run_benchmark_language(benchmark, language, benchmark_result):
name = "{0} - {1}".format(benchmark[0], language[0])
print("{0:30s}".format(name), end=' ')
if not os.path.exists(os.path.join(
BENCHMARK_DIR, benchmark[0] + language[2])):
print("No implementation for this language")
bpath = os.path.join(BENCHMARK_DIR, benchmark[0] + language[2])
if not os.path.exists(bpath):
print("No implementation for this language: " + bpath)
return
times = []