class

Azu::DevelopmentTools::Benchmark

Inherits Reference < Object

Performance benchmarking utilities

Class methods

compare(benchmarks : Hash(String, Proc(Nil)), iterations : Int32 = 1000) : Array(BenchmarkResult)

Compare multiple benchmarks

Source
load_test(url : String, concurrent : Int32 = 10, requests : Int32 = 1000, timeout : Time::Span = 30.seconds) : Hash(String, Float64)

Load test an HTTP endpoint

Source
run(name : String, iterations : Int32 = 1000, warmup : Int32 = 100, & : -> Nil) : BenchmarkResult

Run a benchmark

Source

Nested types