suggestions icon indicating copy to clipboard operation
suggestions copied to clipboard

Erlang benchmarking wrapper

Open edman opened this issue 4 years ago • 1 comments

We briefly talked on discord about adding an erlang benchmarking library.

I wanted to get some of the requirements down before trying to implement it.

I'm thinking to wrap erlang's timer module. timer:tc seems to be recommended for benchmarking: http://erlang.org/doc/efficiency_guide/profiling.html#benchmarking

Couple questions:

  • Where would this go? A new gleam/timer library? In the stdlib?

  • Besides timing a function call, is there anything else we'd want at the moment?

edman avatar Dec 06 '20 14:12 edman

I think this would be best as a library rather than in the stdlib. Particularly because it will be platform dependent.

I think the ideal in the short term would be that it wraps an existing benchmarking tool rather than being a wrapper around the timer module. That way we could get features such as warm-ups, reporting, memory usage supervision, anormally detection, etc.

lpil avatar Dec 07 '20 10:12 lpil