Message ID | 20220225032436.2525935-1-hjl.tools@gmail.com |
---|---|
State | New |
Headers | show |
Series | benchtests: Remove duplicated loop in bench-bzero-walk.c | expand |
On 25/02/2022 08:54, H.J. Lu via Libc-alpha wrote: > Remove one of 2 identical loops in bench-bzero-walk.c. LGTM. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> > --- > benchtests/bench-bzero-walk.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/benchtests/bench-bzero-walk.c b/benchtests/bench-bzero-walk.c > index 4984f6e190..851a72b137 100644 > --- a/benchtests/bench-bzero-walk.c > +++ b/benchtests/bench-bzero-walk.c > @@ -122,12 +122,6 @@ test_main (void) > do_test (&json_ctx, i + 1); > } > > - for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) > - { > - do_test (&json_ctx, i); > - do_test (&json_ctx, i + 1); > - } > - > json_array_end (&json_ctx); > json_attr_object_end (&json_ctx); > json_attr_object_end (&json_ctx);
diff --git a/benchtests/bench-bzero-walk.c b/benchtests/bench-bzero-walk.c index 4984f6e190..851a72b137 100644 --- a/benchtests/bench-bzero-walk.c +++ b/benchtests/bench-bzero-walk.c @@ -122,12 +122,6 @@ test_main (void) do_test (&json_ctx, i + 1); } - for (i = START_SIZE; i <= MIN_PAGE_SIZE; i <<= 1) - { - do_test (&json_ctx, i); - do_test (&json_ctx, i + 1); - } - json_array_end (&json_ctx); json_attr_object_end (&json_ctx); json_attr_object_end (&json_ctx);