Benchtests: move 'alloc_bufs' from loop in bench-memset.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 5 Feb 2022 09:10:44 +0000 (03:10 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 5 Feb 2022 22:48:00 +0000 (16:48 -0600)
commit90cbb806361a5da29a9ef99866f0b3e699fad176
treea6179090a0198e9c7b026811473b919e8d562191
parent0e0199a9e02ebe42e2b36958964d63f03573c382
Benchtests: move 'alloc_bufs' from loop in bench-memset.c

One buf allocation is sufficient. Calling `alloc_bufs' in the loop
just adds unnecessary syscall overhead.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
benchtests/bench-memset.c