ocaml-benchmark icon indicating copy to clipboard operation
ocaml-benchmark copied to clipboard

Lwt support

Open g2p opened this issue 7 years ago • 1 comments

I'd like to use Benchmark to benchmark within an Lwt main loop.

I can't just benchmark a function that calls Lwt_main.run because I have some expensive initialisation done within the Lwt monad, so I need to add the functionality to Benchmark itself. Feel free to come up with advice if you want.

g2p avatar Oct 06 '18 10:10 g2p

Have not thought much about it but how can you measure the time spend by a function if the computation can switch to another function in the process? Some help from Lwt is needed I think.

Chris00 avatar Nov 02 '18 17:11 Chris00