about summary refs log tree commit diff
path: root/benchtests/bench-strlen.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2023-03-03 12:57:49 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2023-03-08 18:36:35 +0000
commitb0e02d5b6d65cdfc972494484ef9a67b8e55e8f0 (patch)
treeafcefcb2b1d17d0115a61c9be21f7304646ed612 /benchtests/bench-strlen.c
parentdcfcb8e3928f68706e2bfa7527de363a899d2a69 (diff)
downloadglibc-b0e02d5b6d65cdfc972494484ef9a67b8e55e8f0.tar.gz
glibc-b0e02d5b6d65cdfc972494484ef9a67b8e55e8f0.tar.xz
glibc-b0e02d5b6d65cdfc972494484ef9a67b8e55e8f0.zip
Benchtests: Remove memchr_strnlen
Remove memchr_strnlen since it is now the same as generic_strnlen.  Adjust
iteration count to reduce benchmark time.  Keep memchr_strlen since the
generic strlen does not use memchr.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'benchtests/bench-strlen.c')
-rw-r--r--benchtests/bench-strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-strlen.c b/benchtests/bench-strlen.c
index cae88dd6ec..9b91f8a10e 100644
--- a/benchtests/bench-strlen.c
+++ b/benchtests/bench-strlen.c
@@ -48,7 +48,7 @@ IMPL (STRLEN, 1)
 static void
 do_one_test (json_ctx_t *json_ctx, impl_t *impl, const CHAR *s, size_t exp_len)
 {
-  size_t len = CALL (impl, s), i, iters = INNER_LOOP_ITERS_LARGE;
+  size_t len = CALL (impl, s), i, iters = INNER_LOOP_ITERS8;
   timing_t start, stop, cur;
 
   if (len != exp_len)