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>
This commit is contained in:
Noah Goldstein 2022-02-05 23:51:07 -06:00
parent b62ace2740
commit 69e6992d79

View File

@ -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);