Benchee is a library for micro benchmarking in Elixir

Benchee is a library for micro benchmarking in Elixir
Average rating: 5
(1 votes)

Thanks! You’ve rated this material!

It can happen sometimes that you work with Elixir and then you want to benchmark something. So, what will you use? We have a hint for you. Benchee is a library for micro benchmarking in Elixir that allows you to compare the performance of different pieces of code at a glance.

Benchee is easy in use and can run each benchmarking function you give it for a given amount of time and then compute statistics from it. Benchee provides you with:

  • average run time
  • iterations per second
  • standard deviation
  • median

It has so many great features that can surprise you, for example, it:

  1. first runs the functions for a given warmup time without recording the results,
  2. measures memory usage,
  3. provides you with lots of statistics,
  4. plugin/extensible friendly architecture so you can use different formats to display benchmarking results as HTML, markdown, JSON and more,
  5. nicely formatted console output with units scaled to appropriately,
  6. measures the overhead of function calls,
  7. hooks to execute something before/after a benchmarking invocation,
  8. execute benchmark jobs in parallel to gather more results in the same timу,
  9. well documented and well tested.

Excited? Then check all the necessary information here.

And if you want to explore with us the Elixir Concurrency example and put it in practice, you are always welcomed!

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111