aboutsummaryrefslogtreecommitdiff
path: root/compare.py
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2016-04-25 15:17:48 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2016-04-26 15:05:18 +0100
commitb3bd95d9a5f4c30969c85f70f6acf08fcf312281 (patch)
tree72b0cccc6504dd7e26c5387678787585fee4ab8c /compare.py
parentcf945ac564aecccd5aa2067f4dfc8fec4b594c51 (diff)
downloadart-testing-b3bd95d9a5f4c30969c85f70f6acf08fcf312281.tar.gz
Improve the filter option.
- When no filters match, retry with the original filters prefixed and suffixed with `*`. This allows not specifying wildcards for simple runs. For example `./tools/benchmarks/run.py --filter Sort` would not run anything. - Do not crash while computing statistics if there are no results. - Add support for filtering to the top-level `compare.py` script. Change-Id: I7d279f6ecaf9dfdd5c76abba035da2315578ff2f
Diffstat (limited to 'compare.py')
-rwxr-xr-xcompare.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/compare.py b/compare.py
index 2b8b2bf..017b033 100755
--- a/compare.py
+++ b/compare.py
@@ -73,4 +73,8 @@ if __name__ == "__main__":
res_2 = json.load(file_2, object_pairs_hook=OrderedDict)
file_1.close()
file_2.close()
+
+ res_1 = utils.Filter(res_1, args.filter, args.filter_out)
+ res_2 = utils.Filter(res_2, args.filter, args.filter_out)
+
PrintDiff(res_1, res_2)