struct
QuickBench
Defines a struct to facilitate benchmarking and avoiding Bencher
boilerplate.
Fields
- m (
Bench
): Bench object to collect the results.
Implemented traits
AnyType
Methods
__init__
__init__(inout self: Self)
Just initialize the Bench object.
dump_report
dump_report(self: Self)
Prints out the report from a Benchmark execution collected in Bench object.
run
run[T_out: AnyTrivialRegType](inout self: Self, func: fn() -> T_out, *, bench_id: BenchId, measures: List[ThroughputMeasure] = List())
Benchmark function func
with no input arguments and return type T_out
.
Parameters: