Skip to main content
PerformanceEval measures the run time and peak memory usage of a function, with warm-up runs excluded from the final statistics.

Parameters

Methods

PerformanceResult

Runtime statistics are in seconds; memory statistics are in MiB. All statistics are 0 when the corresponding measurement is disabled. PerformanceResult also exposes print_summary() and print_results(), both accepting console, measure_memory, and measure_runtime arguments.