[Core_bench] Dumping final results into file

17 views
Skip to first unread message

Kakadu

unread,
Apr 11, 2015, 6:34:20 PM4/11/15
to ocaml...@googlegroups.com
Hi, folks!

I've found out how to dump all intermediate test results into file-per-test but I'm wondering how to dump final average results ? I do not need at all this fancy ASCII table. I want only boring numbers to pass them somewhere (very likely, gnuplot). I do not want to parse intermediate values because evaluating of average values is already implemented

If non-fancy output is not implemented I probably need to add a new parameter to Display.display in display.ml and to refactor columns creation to be able to access simple stringification of regressions. Any advice?

KR,
Kakadu

Roshan James

unread,
Apr 13, 2015, 11:47:41 PM4/13/15
to ocaml...@googlegroups.com
Hi Kakadu,

There is no built-in command line flag for printing the analysis results in any format other than the ascii table. If you want to take control of printing, then you'll want to call [Bench.measure] and [Bench.analyze] functions yourself and then print the resulting [Analysis_result.t]s as you see fit. For an example of how to call these two functions, see the implementation of the [Bench.bench]. 

best,
Roshan
Reply all
Reply to author
Forward
0 new messages