public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Benchtests: Add length zero benchmark for memset in bench-memset.c
@ 2022-02-07  5:28 Noah Goldstein
  0 siblings, 0 replies; only message in thread
From: Noah Goldstein @ 2022-02-07  5:28 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=69e6992d79dcd1d41b3379c22689ef5826cdb876

commit 69e6992d79dcd1d41b3379c22689ef5826cdb876
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Sat Feb 5 23:51:07 2022 -0600

    Benchtests: Add length zero benchmark for memset in bench-memset.c
    
    Zero is a relevant size for some workloads (roughly 5% of uses for
    GCC) so we should be testing it's performance as well.
    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Diff:
---
 benchtests/bench-memset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/benchtests/bench-memset.c b/benchtests/bench-memset.c
index e1e2d5f176..6c95a1e965 100644
--- a/benchtests/bench-memset.c
+++ b/benchtests/bench-memset.c
@@ -110,7 +110,7 @@ test_main (void)
     {
       for (i = 0; i < 18; ++i)
 	do_test (&json_ctx, 0, c, 1 << i);
-      for (i = 1; i < 64; ++i)
+      for (i = 0; i < 64; ++i)
 	{
 	  do_test (&json_ctx, i, c, i);
 	  do_test (&json_ctx, 4096 - i, c, i);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-07  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07  5:28 [glibc] Benchtests: Add length zero benchmark for memset in bench-memset.c Noah Goldstein

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).