[erlang-questions] Looking for an erlang function benchmarking library/framework

Darach Ennis darach@REDACTED
Tue Apr 7 11:00:04 CEST 2015

Hi Martin,

You won't find a general purpose benchmarking framework suitable for all
tasks but there are plenty of examples:

* http://release.softlab.ntua.gr/bencherl/ - targets scalability
* https://github.com/gar1t/erlang-bench - Garrett uses erlang scripts for
* https://github.com/extend/horse - Loïc's horse [ glad i waited a second
before responding... ]

For small or microbenchmarks there's also HDR histogram which will give
fairly extensive
statistics and allows compensating for coordinated omission for latency
sensitive tests if
that is relevant:




On Tue, Apr 7, 2015 at 9:48 AM, Martin Karlsson <martink@REDACTED>

> Hello,
> 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.
> 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?
> Ideally doing:
> $ make benchmark
> or
> $ rebar benchmark
> would run the benchmark tests and output a nice report.
> I've played with golangs benchmark utilities in the testing package (
> http://golang.org/pkg/testing/) and found it quite useful and wonder if
> there is an erlang equivalent?
> 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.
> Cheers,
> Martin
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150407/268a4083/attachment.htm>

More information about the erlang-questions mailing list