about summary refs log tree commit diff
path: root/benchtests
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-02-05 23:51:07 -0600
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-02-06 22:01:39 -0600
commit69e6992d79dcd1d41b3379c22689ef5826cdb876 (patch)
tree167fce1d5987d94ce85d54091a36a18754b7e9d7 /benchtests
parentb62ace2740a106222e124cc86956448fa07abf4d (diff)
downloadglibc-69e6992d79dcd1d41b3379c22689ef5826cdb876.tar.gz
glibc-69e6992d79dcd1d41b3379c22689ef5826cdb876.tar.xz
glibc-69e6992d79dcd1d41b3379c22689ef5826cdb876.zip
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>
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/bench-memset.c2
1 files changed, 1 insertions, 1 deletions
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);