diff options
author | Alexandre Rames <alexandre.rames@linaro.org> | 2016-04-25 15:17:48 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2016-04-26 15:05:18 +0100 |
commit | b3bd95d9a5f4c30969c85f70f6acf08fcf312281 (patch) | |
tree | 72b0cccc6504dd7e26c5387678787585fee4ab8c /compare.py | |
parent | cf945ac564aecccd5aa2067f4dfc8fec4b594c51 (diff) | |
download | art-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-x | compare.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |