Benchee v0.13.0 Benchee.Benchmark.Measure behaviour View Source
A thing that measures something about a function execution - like time or memory needed.
Link to this section Summary
Callbacks
Takes an anonymous 0 arity function to measure and returns the measurement and the return value of the function in a tuple
Link to this section Callbacks
Link to this callback
measure(function)
View Source
measure((() -> any())) :: {non_neg_integer() | nil, any()}
Takes an anonymous 0 arity function to measure and returns the measurement and the return value of the function in a tuple.
The returned measurement may be nil
if the measurement failed for some
reason - it will then be ignored and not counted.