Thank you for contributing! Let's get you started!
-
Fork and clone the repository
-
Install dependencies:
mix deps.get
-
Write a benchmark using the following template:
defmodule IdiomName.Fast do def function_name do end end defmodule IdiomName.Slow do def function_name do end end defmodule IdiomName.Benchmark do def benchmark do Benchee.run(%{ "Idiom Name Fast" => fn -> bench(IdiomName.Fast) end, "Idiom Name Slow" => fn -> bench(IdiomName.Slow) end, }, time: 10, print: [fast_warning: false]) end defp bench(module) do module.function_name end end IdiomName.Benchmark.benchmark()
-
Run your benchmark:
mix run code/<category>/<benchmark>.exs
-
Add the output along with a description to the README.
-
Open a Pull Request!