aboutsummaryrefslogtreecommitdiff
path: root/benchtests/bench-memchr.c
diff options
context:
space:
mode:
authorAnton Youdkevitch <anton.youdkevitch@bell-sw.com>2019-06-28 13:38:07 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2019-06-28 13:38:07 +0100
commitafe23eb0f1942cb033ffdf3a338f669be4683f6c (patch)
tree699e78ba98d220bd6606cbf75436d67f5bc89bc8 /benchtests/bench-memchr.c
parent507f55c05f30c9eb80faf2546ec635c338c039eb (diff)
downloadglibc-afe23eb0f1942cb033ffdf3a338f669be4683f6c.tar
glibc-afe23eb0f1942cb033ffdf3a338f669be4683f6c.tar.gz
glibc-afe23eb0f1942cb033ffdf3a338f669be4683f6c.tar.bz2
glibc-afe23eb0f1942cb033ffdf3a338f669be4683f6c.zip
Bump up the runtime for "short" benchmarks
Some benchmarks with a very short runtime show significantly different results across runs on Aarch64 - up to tens of percents. Increasing the runtime to 100ms+ makes the deviation under 5%. Tested on Aarch64 and x86-64. Reviewed-by: Carlos O'Donell <carlos@redhat.com> * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS with INNER_LOOP_ITERS_LARGE. * benchtests/bench-memchr.c: Likewise. * benchtests/bench-rawmemchr.c: Likewise. * benchtests/bench-strcat.c: Likewise. * benchtests/bench-strchr.c: Likewise. * benchtests/bench-string.h: Likewise. * benchtests/bench-strlen.c: Likewise. * benchtests/bench-strncpy.c: Likewise. * benchtests/bench-strnlen.c: Likewise.
Diffstat (limited to 'benchtests/bench-memchr.c')
-rw-r--r--benchtests/bench-memchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-memchr.c b/benchtests/bench-memchr.c
index 9bd07eba75..8a9909a984 100644
--- a/benchtests/bench-memchr.c
+++ b/benchtests/bench-memchr.c
@@ -56,7 +56,7 @@ SIMPLE_MEMCHR (const CHAR *s, int c, size_t n)
static void
do_one_test (impl_t *impl, const CHAR *s, int c, size_t n)
{
- size_t i, iters = INNER_LOOP_ITERS;
+ size_t i, iters = INNER_LOOP_ITERS_LARGE;
timing_t start, stop, cur;
TIMING_NOW (start);