public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Noah Goldstein <nwg@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] Benchtests: Add length zero benchmark for memset in bench-memset.c
Date: Mon,  7 Feb 2022 05:28:15 +0000 (GMT)	[thread overview]
Message-ID: <20220207052815.8A1383858D37@sourceware.org> (raw)

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


                 reply	other threads:[~2022-02-07  5:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220207052815.8A1383858D37@sourceware.org \
    --to=nwg@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).