<div dir="ltr"><div>Hello,</div><div><br></div><div>I want to benchmark individual functions to see how they perform. I've looked around for some library or framework which provides a  repeatable and structured way of doing benchmarking (much like eunit and common tests do for unit and integration tests) but haven't found anything on a micro-level.</div><div><br></div><div>Currently I have an ad-hoc collection of test functions wrapping the function under test in timer:tc but as mentioned looking for something more structured with proper reporting. Before writing it myself I wonder if there is anything out there already doing this?</div><div><br></div><div>Ideally doing:</div><div><br></div><div>$ make benchmark </div><div>or</div><div>$ rebar benchmark</div><div><br></div><div>would run the benchmark tests and output a nice report.</div><div><br></div><div>I've played with golangs benchmark utilities in the testing package (<a href="http://golang.org/pkg/testing/">http://golang.org/pkg/testing/</a>) and found it quite useful and wonder if there is an erlang equivalent?</div><div><br></div><div>Perhaps this is trivial to write in a normal eunit/ct test together with timer:tc or fprof or something and if so I'd be happy to get any pointers on where to start.</div><div><br></div><div><br></div><div>Cheers,</div><div>Martin</div></div>