Skip to main content

Quick Test

# Using hey (simple)
hey -n 10000 -c 100 http://localhost:8080/

# Using wrk
wrk -t4 -c100 -d30s http://localhost:8080/

# Using ab
ab -n 10000 -c 100 http://localhost:8080/

Install Tools

# hey (Go)
go install github.com/rakyll/hey@latest

# wrk
brew install wrk  # macOS
# or: git clone https://github.com/wg/wrk.git && make

# ab (Apache Bench)
apt install apache2-utils  # Ubuntu
brew install httpd-tools   # macOS

Common Tests

# Baseline (100 concurrent, 10k requests)
hey -n 10000 -c 100 http://localhost:8080/

# High concurrency (500 connections)
hey -n 50000 -c 500 http://localhost:8080/

# Sustained load (30 seconds)
wrk -t4 -c200 -d30s http://localhost:8080/

# With latency stats
wrk -t4 -c100 -d30s --latency http://localhost:8080/

Monitor During Test

# Watch metrics
curl -s http://localhost:8080/metrics | jq '.'

# Or Prometheus
curl -s http://localhost:8080/prometheus