> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ultrabalancer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Load Testing

> Test UltraBalancer performance

## Quick Test

```bash theme={null}
# 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

```bash theme={null}
# 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

```bash theme={null}
# 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

```bash theme={null}
# Watch metrics
curl -s http://localhost:8080/metrics | jq '.'

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

## Related

* [Benchmarks](/testing/benchmarks) - Official performance data
* [Monitoring](/integration/monitoring) - Grafana setup
