From 90d8a2534543589b03f50d8575c265794595d335 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 19 Dec 2017 15:34:45 -0200 Subject: [test] account for first timers in outlier calculation When it's the first time a test is run, there'll not be previous results to compare against. The script that calculates outliers was not prepared for this situation. This commit just fixes that. --- scripts/benchmark/check-for-outliers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/benchmark') diff --git a/scripts/benchmark/check-for-outliers.py b/scripts/benchmark/check-for-outliers.py index 6037ef00..309e6828 100755 --- a/scripts/benchmark/check-for-outliers.py +++ b/scripts/benchmark/check-for-outliers.py @@ -145,6 +145,8 @@ def detect_bad_outlier(test, mean, extra): def _detect_outlier(test, name, value, list): + if not list: + return 0 mean = _mean(list) std = _std(list) result = 0 -- cgit v1.2.3