benchtests: Make memcpy benchmarks print results in json
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2017 18:14:19 +0000 (23:44 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2017 18:14:19 +0000 (23:44 +0530)
commit5ee1e3cebc47495a36d17a0066c241978ca6f502
treeb00009587150abc59c1a2c2ef61265f43502b951
parent738a9914a066a31750925543a8c6d2661bd61345
benchtests: Make memcpy benchmarks print results in json

Print the benchmark output for various memcpy benchmarks in json so
that it can be predictably parsed and analyzed.

* benchtests/bench-memcpy-large.c: Include json-lib.h.
(do_one_test): Print json.
(do_test): Likewise.
(test_main): Likewise.
* benchtests/bench-memcpy-random.c: Include json-lib.h.
(do_one_test): Print json.
(do_test): Likewise.
(test_main): Likewise.
* benchtests/bench-memcpy.c: Include json-lib.h.
(do_one_test): Print json.
(do_test): Likewise.
(test_main): Likewise.
benchtests/bench-memcpy-large.c
benchtests/bench-memcpy-random.c
benchtests/bench-memcpy.c