mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
benchtests: Avoid a display error when running in text terminal
The compare_strings.py script generates a graph for the benchmarks it performs a comparison on and that fails if X is not available. Avoid the error and ensure that only the graph is generated and saved as a PNG file. * benchtests/scripts/compare_strings.py: Avoid display error when generating graph.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||||
|
|
||||||
|
* benchtests/scripts/compare_strings.py: Avoid display error when
|
||||||
|
running on a text terminal.
|
||||||
|
|
||||||
* benchtests/scripts/compare_strings.py (main): Add an
|
* benchtests/scripts/compare_strings.py (main): Add an
|
||||||
optional -base option.
|
optional -base option.
|
||||||
(process_results): New argument base_func.
|
(process_results): New argument base_func.
|
||||||
|
@ -21,6 +21,8 @@ Given a string benchmark result file, print a table with comparisons with a
|
|||||||
baseline. The baseline is the first function, which typically is the builtin
|
baseline. The baseline is the first function, which typically is the builtin
|
||||||
function.
|
function.
|
||||||
"""
|
"""
|
||||||
|
import matplotlib as mpl
|
||||||
|
mpl.use('Agg')
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
Reference in New Issue
Block a user