gleam-lang / suggestions

📙 A place for ideas and feedback
26 stars 2 forks source link

Erlang benchmarking wrapper #110

Open edman opened 3 years ago

edman commented 3 years ago

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:

lpil commented 3 years ago

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.