benchtests: Improve bench-strnlen.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 23 May 2022 22:41:55 +0000 (17:41 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 23 May 2022 23:14:06 +0000 (18:14 -0500)
commita01a13601c95f5d111d25557656d09fe661cfc89
tree39f325d1a9a1531133dcf16f5f14e96e53f22fc7
parentefeb2bd1ab49215325040aa53396a2c19dfd1402
benchtests: Improve bench-strnlen.c

1. Output results in json format so its easier to parse
2. Increase max alignment to `getpagesize () - 1` to make it possible
   to test page cross cases.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
benchtests/bench-strnlen.c