Understand the benchmark tool options
mainThe framework supports two primary benchmarking tools:
wrk (Primary): A high-performance C-based HTTP benchmark tool using
kqueue(macOS) orepoll(Linux). It is used for high-throughput testing and provides latency percentiles (p50, p90, p99) via Lua callbacks. Scenarios are defined inload-tests/scenarios/.- Installation:
brew install wrk(macOS) orapt install wrk(Linux).
- Installation:
fusionauth-load-tests (Secondary): A Java-based load generator using virtual threads and the JDK
HttpClient. It provides a perspective from a 'real Java client'. It typically achieves lower RPS thanwrkdue to client-side overhead.
Note: You can run both tools against a server using the --tool both flag in run-benchmarks.sh.