BenchmarkResults

class rayne.benchmark_results.BenchmarkResults(name: str, run_times: List[int])

The results of running a microbenchmark

The Benchmark passes this object to the reporters after it benchmarks the user code. Custom reporters must take one BenchmarkResults object.

name

The results belong to the Benchmark with this name.

Type:

str

run_times

The list of execution times of the user code. Each entry is an integer number of nanoseconds. The length of this list should equal the number of benchmark runs.

Type:

List[int]