public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] benchtests: Add small sizes (<= 64) to bench-bzero-walk.c
@ 2022-02-24 20:28 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2022-02-24 20:28 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=89377d41d73b59a5b8c781fe08df99df0a470fac
commit 89377d41d73b59a5b8c781fe08df99df0a470fac
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Feb 24 09:47:27 2022 -0800
benchtests: Add small sizes (<= 64) to bench-bzero-walk.c
Small sizes (<= 64) represent large portion of memset usages with zero
value. Add sizes (<= 64) to bench-bzero-walk.c to cover small sizes.
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
Diff:
---
benchtests/bench-bzero-walk.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/benchtests/bench-bzero-walk.c b/benchtests/bench-bzero-walk.c
index 00226f80b8..4984f6e190 100644
--- a/benchtests/bench-bzero-walk.c
+++ b/benchtests/bench-bzero-walk.c
@@ -113,6 +113,9 @@ test_main (void)
json_array_end (&json_ctx);
json_array_begin (&json_ctx, "results");
+ for (i = 1; i <= 64; i++)
+ do_test (&json_ctx, i);
+
for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
{
do_test (&json_ctx, i);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-24 20:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 20:28 [glibc] benchtests: Add small sizes (<= 64) to bench-bzero-walk.c H.J. Lu
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).