Skip to main content

Test Results

Test Environment:
  • CPU: Apple M1 Pro (arm64)
  • Memory: 16GB
  • Backends: 3 Python HTTP servers
  • Duration: 30 seconds per test
  • Tool: wrk (4 threads, 100 connections)

Request Throughput

Load BalancerRequests/secThroughput
UltraBalancer18,7223.55 MB/s
NGINX21,8994.07 MB/s
HAProxy53076 KB/s

Latency

Load BalancerAvg Latency
UltraBalancer38.93ms
NGINX34.47ms
HAProxy9.58ms

Note on Results

The Python backends were the bottleneck - they can’t handle high concurrency. For production benchmarks, use fast backends (Go, Rust, Node.js). Despite this, UltraBalancer performed within 15% of NGINX - competitive for a young Rust project!

Run Your Own Benchmarks

# Start monitoring dashboard
ultrabalancer dashboard --start

# Use wrk for benchmarking
wrk -t4 -c100 -d30s http://localhost:8080/

Why UltraBalancer Wins

Features

FeatureUltraBalancerNGINXHAProxy
Round Robin
Least Connections
Weighted
IP Hash
Random
Power of Two
Fastest Response
Prometheus MetricsBuilt-inConfigConfig
Grafana Dashboardultrabalancer dashboard --startManualManual
Admin APIBuilt-inAddonAddon
Graceful DrainConfigConfig

Developer Experience

# One command to start full monitoring stack
ultrabalancer dashboard --start

# Runtime backend management via API
curl -H "X-API-Key: YOUR_KEY" http://localhost:8080/admin/backends

# Add/remove backends without restart
curl -X POST -H "X-API-Key: YOUR_KEY" \
  -d '{"address":"10.0.0.5:8080","weight":100}' \
  http://localhost:8080/admin/backends

Rust Advantages

  • Memory safety (no buffer overflows)
  • Thread safety (no data races)
  • Zero-cost abstractions
  • Modern async runtime (Tokio)

Summary

What you needWinner
Raw throughput (mature C)NGINX
Modern features + observabilityUltraBalancer
Complex configsNGINX/HAProxy
Developer experienceUltraBalancer
Production-grade provenNGINX
Next-gen cloud-nativeUltraBalancer
UltraBalancer is the clear choice for modern deployments requiring:
  • One-command monitoring setup
  • 7 algorithms including power-of-two & fastest-response
  • Secure Admin API for runtime management
  • Zero-downtime deployments with drain/undrain
  • Memory-safe Rust codebase
Run benchmarks yourself: ultrabalancer dashboard --start