diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2023-03-21 14:00:22 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2023-04-17 13:00:38 +0100 |
commit | 2623479105a7e11ccd1e504b3f549cadbb875a42 (patch) | |
tree | 6d06b43c729909296a27f7f8638b32b32bc5a02d /benchtests/bench-memcpy.c | |
parent | e2756903329365134089d23548e9083d23bc3dd9 (diff) | |
download | glibc-2623479105a7e11ccd1e504b3f549cadbb875a42.zip glibc-2623479105a7e11ccd1e504b3f549cadbb875a42.tar.gz glibc-2623479105a7e11ccd1e504b3f549cadbb875a42.tar.bz2 |
Benchtests: Adjust timing
Adjust iteration counts so benchmarks don't run too slowly or quickly.
Ensure benchmarks take less than 10 seconds on older, slower cores and
more than 0.5 seconds on fast cores.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'benchtests/bench-memcpy.c')
-rw-r--r-- | benchtests/bench-memcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c index 1fd41c0..5be0996 100644 --- a/benchtests/bench-memcpy.c +++ b/benchtests/bench-memcpy.c @@ -38,7 +38,7 @@ static void do_one_test (json_ctx_t *json_ctx, impl_t *impl, char *dst, const char *src, size_t len) { - size_t i, iters = INNER_LOOP_ITERS; + size_t i, iters = INNER_LOOP_ITERS / 2; timing_t start, stop, cur; for (i = 0; i < iters / 64; ++i) { |