indyelixir / fibonacci

An Elixir interface to the Fibonacci series.
1 stars 1 forks source link

Benchmarks with benchfella #6

Closed stevegrossi closed 8 years ago

stevegrossi commented 8 years ago

Especially useful is the mix bench.cmp task, which will compare the last 2 benchmarks. Run a benchmark on master and then on a branch with changes in order to compare the performance:

$ mix bench.cmp
bench/snapshots/2016-09-11_10-00-12.snapshot vs
bench/snapshots/2016-09-11_10-00-28.snapshot

## SeriesBench
Fibonacci.series(100000)    1.01

This shows that the second benchmark was 1.01x the speed of the previous one, though the output could make this clearer.