Files
foxhunt/testing/load

load

Minimal-dependency load tests for Trading Service throughput validation. Rust gRPC tests (direct port 50052) plus authenticated ghz shell scripts (API Gateway port 50051).

Test Suites

Rust Tests (direct trading service)

  • test_1_baseline_latency -- 1K sequential orders
  • test_2_concurrent_connections -- 100 clients x 100 orders
  • test_3_sustained_load (ignored) -- 5 min, 10K orders/sec
  • test_4_database_performance -- 5K order DB writes
  • test_5_resource_monitoring -- health + metrics (feature health-checks)
  • test_6_production_readiness -- 50 clients x 200 orders, success >= 99%

ghz Scripts (API Gateway with JWT)

  • ghz_quick_auth_test.sh -- single authenticated request
  • ghz_authenticated.sh -- baseline/medium/high/sustained scenarios

Usage

cargo test -p load --release -- --nocapture