Commit 6b08f4e6 authored by Allison Vacanti's avatar Allison Vacanti

Handle NaNs gracefully in benchmark compare script.

parent 7ca3b60f
......@@ -39,7 +39,7 @@ nameParser = re.compile("Benchmark '([^-]+)' results:")
meanParser = re.compile("\\s+mean = ([0-9.Ee+-]+)s")
# Parses "std dev = 0.0125s" --> 0.0125
stdDevParser = re.compile("\\s+std dev = ([0-9.Ee+-]+)s")
stdDevParser = re.compile("\\s+std dev = ([naN0-9.Ee+-]+)s")
serialFilename = sys.argv[1]
parallelFilename = sys.argv[2]
......@@ -99,9 +99,6 @@ def parseFile(f, benchmarks):
stdDev = float(stdDevRes.group(1))
debug("Found stddev: {}".format(stdDev))
assert(mean >= 0.)
assert(stdDev >= 0.)
# stdDev is always the last parse for a given benchmark, add entry now
benchmarks[BenchKey(name, type)] = BenchData(mean, stdDev)
debug("{} records found.".format(len(benchmarks)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment