RelayMiner RPS Testing

Light load test

make test_baseline_static_server_load R=10000 C=1000

Quick test

make test_baseline_static_server_load R=5000 C=500 D=10s

Maximum load test

make test_baseline_static_server_load R=200000 T=32 C=15000 D=45s

⚑ RelayMiner Only Load Test

Session Validity Critical

This test covers:

  • RelayMiner request processing performance

  • Signature verification overhead

  • Backend service communication latency

  • Request validation and response serialization

  • Resource contention under high load

Default Configuration:

  • Rate: 512 requests per second

  • Threads: 16 worker threads

  • Connections: 256 concurrent connections

  • Duration: 300 seconds (5 minutes)

Command:

Custom parameters:

Service Configuration

The "static" service must be configured:

  • Service ID: static

  • Compute units per relay: 1 (minimal)

  • Backend: nginx-chainid server

πŸ“‹ Test Parameters

All RPS tests support flexible parameter configuration:

Parameter
Description
Default

R

Requests per second

512-100k

t

Worker threads

16

c

Concurrent connections

256-5000

d

Test duration

30s-300s

Parameter Selection Guidelines:

  • Light load: R=100-1000, c=50-500, d=30s-60s

  • Medium load: R=1000-5000, c=500-2000, d=60s-300s

  • Heavy load: R=5000+, c=2000+, d=300s+

πŸ“Š Monitoring Results

πŸ–₯️ Test Output

RPS tests provide detailed performance metrics and diagnostics.

Key Metrics to Monitor:

  • Requests/sec: Actual vs. target RPS

  • Latency percentiles: 50th, 90th, 99th, 99.9th percentiles

  • Error rates: Connection errors, timeouts, validation failures

  • Resource usage: CPU, memory, connection pool utilization

Sample Output:

Last updated

Was this helpful?