public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/relr] benchtests: Add medium cases and increase iters in bench-memset.c
@ 2021-10-16 20:19 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-10-16 20:19 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5d26d12f4ab59c67399c4d5ddcad91704fb737f9
commit 5d26d12f4ab59c67399c4d5ddcad91704fb737f9
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date: Fri Sep 24 18:09:47 2021 -0500
benchtests: Add medium cases and increase iters in bench-memset.c
No bug.
This commit adds new medium size cases for lengths in [512, 1024). As
well it increase the iters to INNER_LOOP_ITERS_LARGE for more reliable
results.
Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diff:
---
benchtests/bench-memset.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/benchtests/bench-memset.c b/benchtests/bench-memset.c
index d6619b4836..4284cb1724 100644
--- a/benchtests/bench-memset.c
+++ b/benchtests/bench-memset.c
@@ -43,7 +43,7 @@ static void
do_one_test (json_ctx_t *json_ctx, impl_t *impl, CHAR *s,
int c __attribute ((unused)), 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);
@@ -118,7 +118,7 @@ test_main (void)
if (i & (i - 1))
do_test (&json_ctx, 0, c, i);
}
- for (i = 32; i < 512; i+=32)
+ for (i = 32; i < 1024; i+=32)
{
do_test (&json_ctx, 0, c, i);
do_test (&json_ctx, i, c, i);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-16 20:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16 20:19 [glibc/maskray/relr] benchtests: Add medium cases and increase iters in bench-memset.c Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).