Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to format output as CSV #206

Closed
amichair opened this issue Mar 30, 2016 · 1 comment
Closed

Add option to format output as CSV #206

amichair opened this issue Mar 30, 2016 · 1 comment

Comments

@amichair
Copy link

It would be really great if wrk had a command line option to output all of its output information (including the optional latency info, if specified) in a single long CSV line rather than the current human-readable format. This would make it much easier to use the results in further analysis, graphs, multi-configuration comparisons, etc.

A more complex option would be to provide a custom format string with placeholders for all the different pieces of data in the output so anyone can adjust it to their precise needs, however a stock CSV line output with all data should be simple enough to further process in any scripting or programming language (much less effort than parsing the current human-readable output).

@wg
Copy link
Owner

wg commented May 15, 2016

This is possible with a custom Lua script with a done(summary, latency, requests) function, see the report.lua example for a starting point: https://github.com/wg/wrk/blob/master/scripts/report.lua

@wg wg closed this as completed May 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants