benchtests: Allow selecting baseline for compare_string.py
commitb115e819af637101d9d9b0d26c3685b7236d3fb1
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 7 Aug 2017 19:25:12 +0000 (8 00:55 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 7 Aug 2017 19:25:12 +0000 (8 00:55 +0530)
tree297a6d9bd37fbd71a302b9121fd1a40e017fabc1
parent7ee38e6040d34bca96ee668efbbd2f56b446319d
benchtests: Allow selecting baseline for compare_string.py

This patch allows one to provide the function name using an optional
-base option to compare all other functions against.  This is useful
when pitching one implementation of a string function against
alternatives.  In the absence of this option, comparisons are done
against the first ifunc in the list.

* benchtests/scripts/compare_strings.py (main): Add an
optional -base option.
(process_results): New argument base_func.
ChangeLog
benchtests/scripts/compare_strings.py