Skip to main content
Log in

Mojo module

bencher

Structs

  • Bench: Constructs a Benchmark object, used for running multiple benchmarks and comparing the results.
  • BenchConfig: Defines a benchmark configuration struct to control execution times and frequency.
  • Bencher: Defines a Bencher struct which facilitates the timing of a target function.
  • BenchId: Defines a benchmark Id struct to identify and represent a particular benchmark execution.
  • BenchmarkInfo: Defines a Benchmark Info struct to record execution Statistics.
  • BenchMetric: Defines a benchmark throughput metric.
  • Format: Defines a format for the benchmark output when printing or writing to a file.
  • Mode: Defines a Benchmark Mode to distinguish between test runs and actual benchmarks.
  • ThroughputMeasure: Records a throughput metric of metric BenchMetric and value.