Mojo struct
BenchmarkInfo
struct BenchmarkInfo
Defines a Benchmark Info struct to record execution Statistics.
Fields
- name (
String): The name of the benchmark. - result (
Report): The output report after executing a benchmark. - measures (
List[ThroughputMeasure]): Optional arg used to represent a list of ThroughputMeasure's. - verbose_timing (
Bool): Whether to print verbose timing results.
Implemented traits
AnyType,
Copyable,
Movable,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = False
__del__is_trivial
alias __del__is_trivial = False
__moveinit__is_trivial
alias __moveinit__is_trivial = False
Methods
__init__
__init__(out self, name: String, var result: Report, var measures: List[ThroughputMeasure] = List[ThroughputMeasure](), verbose_timing: Bool = False)
Constructs a BenchmarkInfo object to return benchmark report and statistics.
Args:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!