Benchmark

Enums

enum BenchmarkResultSource
case Success({ name = String, rounds = Int32, total = Int64 })

Definitions

@Experimental def defBenchmark(name: String, f: Unit -> a \ ef): BenchmarkSource

A smart constructor for a benchmark.

@Experimental def runWithBudget(bs: Array[Benchmark, r], budget: Int64): Int32 \ IOSource

Runs all benchmarks in bs. Attempts to spend no more than budget nanoseconds. One seconds is 1_000_000_000i64.