Performance Testing
Performance testing in gRPC Testify focuses on timeout control, parallel execution, and metrics in reports.
What to Use
--timeoutfor per-test deadlines--parallelfor concurrency--log-format+--log-outputfor machine-readable metrics--coveragefor API-level execution coverage
Timeout Examples
bash
# Run with stricter timeout
grpctestify tests/ --timeout 10
# Run one test with extended timeout
grpctestify slow_case.gctf --timeout 60Parallel Execution
bash
# Auto detect worker count
grpctestify tests/ --parallel auto
# Fixed workers
grpctestify tests/ --parallel 4Reporting for Analysis
bash
# JSON report
grpctestify tests/ --log-format json --log-output perf-results.json
# JUnit report
grpctestify tests/ --log-format junit --log-output perf-results.xmlNotes
- Use CLI flags for execution tuning
OPTIONSsection can override per-test runtime behavior (timeout,retry,retry-delay,no-retry)