If you want to do a micro benchmark (measure how long a function takes), doing one run of the function is not enough.
You can take a look at GitHub - bencheeorg/benchee: Easy and extensible benchmarking in Elixir providing you with lots of statistics! · GitHub to run microbenchmarks.






















