1
0
forked from Mirror/wren

benchmark; fix parsing of None in certain cases (like with no interpreter when a baseline is made)

This commit is contained in:
underscorediscovery
2019-10-07 23:48:42 -07:00
parent b120739631
commit 53cf6f511b

View File

@ -288,7 +288,10 @@ def read_baseline():
name, best = line.split(",")
for benchmark in BENCHMARKS:
if benchmark[0] == name:
if not best.startswith("None"):
benchmark[2] = float(best)
else:
benchmark[2] = 0.0
def generate_baseline():