summary refs log tree commit diff
path: root/localedata/tst-xlocale2.c
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2018-12-10 15:15:34 -0600
committerLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2018-12-12 11:05:22 -0600
commit1990185f5ff5a77f07ced4408cd0e5c4de404ad7 (patch)
tree0f088213c0a9cfa495c942f422dbfb4c8d5f0abe /localedata/tst-xlocale2.c
parent587426d499e6ac40dafd9a19dcd12cb6af93f5fc (diff)
downloadglibc-1990185f5ff5a77f07ced4408cd0e5c4de404ad7.tar.gz
glibc-1990185f5ff5a77f07ced4408cd0e5c4de404ad7.tar.xz
glibc-1990185f5ff5a77f07ced4408cd0e5c4de404ad7.zip
benchtests: include --stats parameter
Allows user to pick a statistic, defaulting to min and mean, from command
line. At the same time, if stat does not exit, catch the run-time exception
and keep comparing the rest of benchmarked functions. Finally, take care of
division-by-zero exceptions and as the latter, keep comparing the rest of the
functions, turning the script a bit more fault tolerant thus useful.

	* benchtests/scripts/compare_bench.py (do_compare): Catch KeyError and
    ZeroDivisorError exceptions.
	* benchtests/scripts/compare_bench.py (compare_runs): Use stats argument to
    loop through user provided statistics.
	* benchtests/scripts/compare_bench.py (main): Include the --stats argument.
Diffstat (limited to 'localedata/tst-xlocale2.c')
0 files changed, 0 insertions, 0 deletions