projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b03e4d7
)
bench-memcpy: Collect data from 2KB to 4KB
author
H.J. Lu
<hjl.tools@gmail.com>
Fri, 30 Apr 2021 17:10:47 +0000
(10:10 -0700)
committer
H.J. Lu
<hjl.tools@gmail.com>
Mon, 3 May 2021 12:08:22 +0000
(
05:08
-0700)
Collect data on memcpy from 2KB to 4KB with the 64-byte increment value.
benchtests/bench-memcpy.c
patch
|
blob
|
history
diff --git
a/benchtests/bench-memcpy.c
b/benchtests/bench-memcpy.c
index
5bddaeb
..
184495d
100644
(file)
--- 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);