Using Benchee to Analyze Performance

Learn how Benchee can be added to the framework defined so far.

Adding Benchee to the framework

If the optimization seems necessary, the first thing to do is establish a baseline.

Benchee is an Elixir benchmarking package that’s easy to use and provides a lot of information out of the box. We’ll use Benchee to benchmark the different aspects of our genetic algorithms.

We will start by adding Benchee to our dependencies in mix.exs:

Get hands-on with 1400+ tech skills courses.