public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: libc-alpha@sourceware.org
Subject: [PATCH] bench-memcpy: Collect data from 2KB to 4KB
Date: Fri, 30 Apr 2021 10:15:22 -0700	[thread overview]
Message-ID: <20210430171522.3608387-1-hjl.tools@gmail.com> (raw)

Collect data on memcpy from 2KB to 4KB with the 64-byte increment value.
---
 benchtests/bench-memcpy.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/benchtests/bench-memcpy.c b/benchtests/bench-memcpy.c
index 5bddaeb8fc..184495d539 100644
--- a/benchtests/bench-memcpy.c
+++ b/benchtests/bench-memcpy.c
@@ -145,6 +145,14 @@ test_main (void)
 
   do_test (&json_ctx, 0, 0, getpagesize ());
 
+  for (i = 0; i <= 32; ++i)
+    {
+      do_test (&json_ctx, 0, 0, 2048 + 64 * i);
+      do_test (&json_ctx, i, 0, 2048 + 64 * i);
+      do_test (&json_ctx, 0, i, 2048 + 64 * i);
+      do_test (&json_ctx, i, i, 2048 + 64 * i);
+    }
+
   json_array_end (&json_ctx);
   json_attr_object_end (&json_ctx);
   json_attr_object_end (&json_ctx);
-- 
2.31.1


             reply	other threads:[~2021-04-30 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 17:15 H.J. Lu [this message]
2021-05-01 13:45 ` H.J. Lu
2021-05-03 15:04 ` Tulio Magno Quites Machado Filho

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=20210430171522.3608387-1-hjl.tools@gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=libc-alpha@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).