View Source ExToolkit.Bench (ExToolkit v0.9.13)

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

timeit(name, list)

(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