mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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:
parent
b62ace2740
commit
69e6992d79
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user