suggestions
suggestions copied to clipboard
Erlang benchmarking wrapper
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?
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.