public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] bench-memcpy: Collect data from 2KB to 4KB
@ 2021-04-30 17:15 H.J. Lu
  2021-05-01 13:45 ` H.J. Lu
  2021-05-03 15:04 ` Tulio Magno Quites Machado Filho
  0 siblings, 2 replies; 3+ messages in thread
From: H.J. Lu @ 2021-04-30 17:15 UTC (permalink / raw)
  To: libc-alpha

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bench-memcpy: Collect data from 2KB to 4KB
  2021-04-30 17:15 [PATCH] bench-memcpy: Collect data from 2KB to 4KB H.J. Lu
@ 2021-05-01 13:45 ` H.J. Lu
  2021-05-03 15:04 ` Tulio Magno Quites Machado Filho
  1 sibling, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2021-05-01 13:45 UTC (permalink / raw)
  To: GNU C Library

On Fri, Apr 30, 2021 at 10:20 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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
>

If there are no objections, I will check it in next week.

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] bench-memcpy: Collect data from 2KB to 4KB
  2021-04-30 17:15 [PATCH] bench-memcpy: Collect data from 2KB to 4KB H.J. Lu
  2021-05-01 13:45 ` H.J. Lu
@ 2021-05-03 15:04 ` Tulio Magno Quites Machado Filho
  1 sibling, 0 replies; 3+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2021-05-03 15:04 UTC (permalink / raw)
  To: H.J. Lu, libc-alpha

"H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org> writes:

> Collect data on memcpy from 2KB to 4KB with the 64-byte increment value.

LGTM.

-- 
Tulio Magno

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-03 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 17:15 [PATCH] bench-memcpy: Collect data from 2KB to 4KB H.J. Lu
2021-05-01 13:45 ` H.J. Lu
2021-05-03 15:04 ` Tulio Magno Quites Machado Filho

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