You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on automating system performance tests, and I'm using sysbench for some of the benchmarking. One issue I've run into is that the output isn't machine readable, so I've written code that reads the output generated by sysbench and reformats it to JSON. This works well enough, but I had to modify sysbench to get more accurate metrics; I've replaced all format strings based on %f with %g because when there are things like %12.4f, small values essentially get elided or, in the context of the histogram data, become indistinguishable from other small values:
I was wondering if you have any plans to make make the test output machine readable, and if not, whether you would accept such a patch or even a patch that would allow the user to toggle output precision.
The text was updated successfully, but these errors were encountered:
As to precision, the reporter API in sysbench 1.0 is created precisely to make it customizable in Lua without changing sysbench code. If that doesn't work in some case, or is complicated for whatever reasons, I'm happy to accept patches too.
Is there a way to run sysbench from command line and get json output to console or file with parameter like --format=json without using additional technologies (e.g. lua)?
I see that there is a recommendation to add this to script: sysbench.hooks.report_intermediate = sysbench.report_json
Can it be added to shell script before running sysbench like this:
sysbench.hooks.report_intermediate = sysbench.report_json
./sysbench cpu run
I'm working on automating system performance tests, and I'm using sysbench for some of the benchmarking. One issue I've run into is that the output isn't machine readable, so I've written code that reads the output generated by sysbench and reformats it to JSON. This works well enough, but I had to modify sysbench to get more accurate metrics; I've replaced all format strings based on
%f
with%g
because when there are things like%12.4f
, small values essentially get elided or, in the context of the histogram data, become indistinguishable from other small values:I was wondering if you have any plans to make make the test output machine readable, and if not, whether you would accept such a patch or even a patch that would allow the user to toggle output precision.
The text was updated successfully, but these errors were encountered: