Benchmark
0.40.0
Enums
enum BenchmarkResult
Source
case
Success({ name = String, rounds = Int32, total = Int64 })
Definitions
@Experimental
Source
def
defBenchmark
[efa]
(
name :
String
f :
Unit -> a \ ef
)
: Benchmark
\ Pure
A smart constructor for a benchmark.
@Experimental
Source
def
runWithBudget
[r]
(
bs :
Array[Benchmark, r]
budget :
Int64
)
: Int32
\ IO
Runs all benchmarks in bs
. Attempts to spend no more than budget
nanoseconds.
One seconds is 1_000_000_000i64
.