Skip to content

Commit 6c511a6

Browse files
Fix serialization benchmark floating point error
Signed-off-by: Matthew Schlebusch <schlebus@amazon.com>
1 parent 8268791 commit 6c511a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_tests/performance/test_versioned_serialization_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def _check_statistics(directory, mean):
6868
attribute = "no-crc"
6969

7070
measure = BASELINES[proc_model[0]][bench][attribute]
71-
low = measure["target"] - measure["delta"]
72-
high = measure["target"] + measure["delta"]
71+
low = round(measure["target"] - measure["delta"], 3)
72+
high = round(measure["target"] + measure["delta"], 3)
7373
assert low <= mean <= high, "Benchmark result {} has changed!".format(directory)
7474

7575
return directory, f"{mean} ms", f"{low} <= result <= {high}"

0 commit comments

Comments
 (0)