From a9acec4c211c9fdbbb2d812a62f9142f8b21d062 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 6 Sep 2018 14:33:37 +0200 Subject: compare_results.sh: speed up comparison loop The script takes quite long to parse each and every line O(n**2). Rather directly pick only those lines that contain the test name in the grep that feeds into the loop. Change-Id: I0d4987b11c3feaef3a7fc56d764c43386865004f --- compare-results.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compare-results.sh') diff --git a/compare-results.sh b/compare-results.sh index cb80a0dd..708f59dc 100755 --- a/compare-results.sh +++ b/compare-results.sh @@ -112,7 +112,7 @@ while read line; do fi matched="1" break - done <<< "$(grep "