class Azu::DevelopmentTools::Benchmark

Overview

Performance benchmarking utilities

Defined in:

azu/development_tools.cr

Class Method Summary

Class Method Detail

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

Compare multiple benchmarks


[View source]
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


[View source]
def self.run(name : String, iterations : Int32 = 1000, warmup : Int32 = 100, & : -> Nil) : BenchmarkResult #

Run a benchmark


[View source]