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:
db34e88
)
benchtests: Add small sizes (<= 64) to bench-bzero-walk.c
author
H.J. Lu
<hjl.tools@gmail.com>
Thu, 24 Feb 2022 17:47:27 +0000
(09:47 -0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Thu, 24 Feb 2022 20:28:34 +0000
(12:28 -0800)
Small sizes (<= 64) represent large portion of memset usages with zero
value. Add sizes (<= 64) to bench-bzero-walk.c to cover small sizes.
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
benchtests/bench-bzero-walk.c
patch
|
blob
|
history
diff --git
a/benchtests/bench-bzero-walk.c
b/benchtests/bench-bzero-walk.c
index
00226f8
..
4984f6e
100644
(file)
--- a/
benchtests/bench-bzero-walk.c
+++ b/
benchtests/bench-bzero-walk.c
@@
-113,6
+113,9
@@
test_main (void)
json_array_end (&json_ctx);
json_array_begin (&json_ctx, "results");
+ for (i = 1; i <= 64; i++)
+ do_test (&json_ctx, i);
+
for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1)
{
do_test (&json_ctx, i);