Benchee v0.13.0 Benchee.Benchmark.Measure.Memory View Source

Measure memory consumption of a function.

Returns {nil, return_value} in case the memory measurement went bad.

Link to this section Summary

Functions

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 Functions

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.

Callback implementation for Benchee.Benchmark.Measure.measure/1.