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
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
Methods
__init__
__init__(out self, name: String, result: Report, measures: List[ThroughputMeasure] = List(), 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!