IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

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, ImplicitlyDestructible, Movable

Methods

__init__

__init__(out self, name: String, var result: Report, var measures: List[ThroughputMeasure] = List(), verbose_timing: Bool = False)

Constructs a BenchmarkInfo object to return benchmark report and statistics.

Args:

  • 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.