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:
@ -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():
|
||||
|
||||
Reference in New Issue
Block a user