lowlevel-blt-bench: add CSV output mode
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 10 Jun 2015 10:20:47 +0000 (13:20 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 6 Jul 2015 09:04:32 +0000 (12:04 +0300)
commit31cb0d4267f4f358b62f75fd42c4b1ae625be7ee
tree2ea6d21aa71682402fffc47ec784dd6176366238
parent9a7e0bc6d08c0324f09d6440270cd07201929f3f
lowlevel-blt-bench: add CSV output mode

Add a command line option for choosing CSV output mode.

In CSV mode, only the results in Mpixels/s are printed in an easily
machine-parseable format. All user-friendly printing is suppressed.

This is intended for cases where you benchmark one particular operation
at a time. Running the "all" set of benchmarks will print just fine, but
you may have trouble matching rows to operations as you have to look at
the tests_tbl[] to see what row is which.

Reviewed-by: Ben Avison <bavison@riscosopen.org>
v2: don't add a space after comma in CSV.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
test/lowlevel-blt-bench.c