Skip to content

Instantly share code, notes, and snippets.

@ma2gedev
Created July 1, 2015 12:38
Show Gist options
  • Select an option

  • Save ma2gedev/9413b393664623c12c26 to your computer and use it in GitHub Desktop.

Select an option

Save ma2gedev/9413b393664623c12c26 to your computer and use it in GitHub Desktop.
elixir benchmarking

Use Benchfella

https://github.com/alco/benchfella

benchmarking on my MacBookAir

# Luhn version 0.1.0

$ mix bench
Settings:
  duration:      1.0 s

## BasicBench
[21:04:12] 1/1: luhn

Finished in 4.49 seconds

## BasicBench
luhn      500000   7.34 µs/op
# Luhn version 0.2.0

$ mix bench
Settings:
  duration:      1.0 s

## BasicBench
[21:32:28] 1/1: luhn

Finished in 2.48 seconds

## BasicBench
luhn      500000   4.01 µs/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment