benchtests: Improve bench-strrchr
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 22 Apr 2022 19:11:59 +0000 (14:11 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 23 Apr 2022 04:07:54 +0000 (23:07 -0500)
commitc2ff9555a18b84732004d061b1a797ea1a432c6a
tree337ce642ecb9a56eefeade2871768b2014f31873
parent8ea20ee5f6145de4bff9481d3e09ac36ba9df8f3
benchtests: Improve bench-strrchr

1. Use json-lib for printing results.
2. Expose all parameters (before pos, seek_char, and max_char where
   not printed).
3. Add benchmarks that test multiple occurence of seek_char in the
   string.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
benchtests/bench-strrchr.c