benchmark: add support for writing to CSV instead of JSON

Signed-off-by: Evan Nemerson <evan@coeus-group.com>