Benchmark

0.40.0

Enums

enum BenchmarkResult

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

Definitions

@Experimental

def defBenchmark [efa] ( name : String f : Unit -> a \ ef ) : Benchmark \ Pure

Source

A smart constructor for a benchmark.

@Experimental

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

Source

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