View Source ExToolkit.Bench (ExToolkit v0.9.3)

Utility for quick and simple benchmarking functions in Elixir.

Summary

Functions

Benchmarks the execution time of a piece of code. It should be used only in really simple cases.

Functions

Link to this macro

timeit(name, list)

View Source (macro)

Benchmarks the execution time of a piece of code. It should be used only in really simple cases.

Examples

iex> timeit "Sleep for a while", do: :timer.sleep(1000) Executed Sleep for a while in 1.00 seconds