Mojo module
bencher
Implements comprehensive benchmarking infrastructure with statistical analysis.
This module provides the core types and functions for running benchmarks with configurable execution parameters, statistical analysis, and formatted output. It includes support for throughput metrics, warmup iterations, batch execution, and both CPU and GPU kernel benchmarking.
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!