benchtests: Improve reliability of memcmp benchmarks
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 18 Sep 2021 21:13:34 +0000 (16:13 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 24 Sep 2021 23:04:05 +0000 (18:04 -0500)
commita1c056c9d06a6aa184fa3c52a5bbd3562ac386e8
tree4ae96562c032e57cfab18586d46f7cf7f0f44842
parent8807e560c04cdaac1c7cca2c2104e43156b2708d
benchtests: Improve reliability of memcmp benchmarks

No bug. Remove reallocation of bufs between implementation tests. Move
initialization outside of foreach implementation test loop. Increase
iteration count.

Generally before this commit was seeing a great deal of variability
between runs. The goal of this commit is to make the results more
reliable.

Benchtests build and bench-memcmp succeeding.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
benchtests/bench-memcmp.c