class
Azu::DevelopmentTools::Benchmark
- Azu::DevelopmentTools::Benchmark
- Reference
- Object
Overview
Performance benchmarking utilities
Defined in:
azu/development_tools.crClass Method Summary
-
.compare(benchmarks : Hash(String, Proc(Nil)), iterations : Int32 = 1000) : Array(BenchmarkResult)
Compare multiple benchmarks
-
.load_test(url : String, concurrent : Int32 = 10, requests : Int32 = 1000, timeout : Time::Span = 30.seconds) : Hash(String, Float64)
Load test an HTTP endpoint
-
.run(name : String, iterations : Int32 = 1000, warmup : Int32 = 100, & : -> Nil) : BenchmarkResult
Run a benchmark
Class Method Detail
def self.compare(benchmarks : Hash(String, Proc(Nil)), iterations : Int32 = 1000) : Array(BenchmarkResult)
#
Compare multiple benchmarks
def self.load_test(url : String, concurrent : Int32 = 10, requests : Int32 = 1000, timeout : Time::Span = 30.seconds) : Hash(String, Float64)
#
Load test an HTTP endpoint
def self.run(name : String, iterations : Int32 = 1000, warmup : Int32 = 100, & : -> Nil) : BenchmarkResult
#
Run a benchmark