Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Last active November 4, 2018 09:26
Show Gist options
  • Save KamilLelonek/ba741008d9f4b6b2ce7ca7f2a7e60fb1 to your computer and use it in GitHub Desktop.
Save KamilLelonek/ba741008d9f4b6b2ce7ca7f2a7e60fb1 to your computer and use it in GitHub Desktop.
alias Benchmarks.Util.Connection
conn = Connection.init!()
# ...
Benchee.run(
inputs: inputs,
before_scenario: fn inputs ->
Connection.reset!(conn)
init.(inputs)
end,
formatter_options: %{console: %{extended_statistics: true}}
)
Connection.reset!(conn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment