newton.utils.run_benchmark#
- newton.utils.run_benchmark(benchmark_cls, number=1, print_results=True)[source]#
Simple scaffold to run a benchmark class.
- Parameters:
benchmark_cls – ASV-compatible benchmark class.
number – Number of iterations to run each benchmark method.
- Returns:
A dictionary mapping (method name, parameter tuple) to the average result.