diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-02-05 23:51:07 -0600 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-02-06 22:01:39 -0600 |
commit | 69e6992d79dcd1d41b3379c22689ef5826cdb876 (patch) | |
tree | 167fce1d5987d94ce85d54091a36a18754b7e9d7 | |
parent | b62ace2740a106222e124cc86956448fa07abf4d (diff) | |
download | glibc-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>
-rw-r--r-- | benchtests/bench-memset.c | 2 |
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); |