Examples Overview¶
Use this page to choose the right example quickly.
Decision matrix¶
| Goal | Start here | Why |
|---|---|---|
| Validate endpoint availability fast | HTTP Smoke and Load | Includes a minimal smoke profile and a steady-state load profile |
| Verify WebSocket request/response behavior | WebSocket Check | Shows message payloads and response timeout handling |
| Benchmark unary gRPC methods | gRPC Unary | Covers proto path, package, metadata, and deadlines |
| Scale tests across workers | Distributed Coordinator and Workers | Includes coordinator and worker configs with lease controls |
| Bootstrap from API contract files | Import OpenAPI to Benchmark | Demonstrates import and post-import refinement |
| Publish CI test and report artifacts | CI Reporting Workflow | Combines JSON, JUnit, and HTML reporting in one flow |
| Use an all-features reference setup | Complete Setups | Full reference configs for broad feature coverage |
Common paths¶
Path A: New project onboarding¶
- Start with Import OpenAPI to Benchmark.
- Run a quick check from HTTP Smoke and Load.
- Add CI outputs from CI Reporting Workflow.
Path B: Protocol-focused validation¶
- Pick WebSocket Check or gRPC Unary.
- Add SLO thresholds and HTML reporting.
- Compare results against a baseline JSON output.
Path C: High-scale distributed runs¶
- Apply Distributed Coordinator and Workers.
- Keep lease size conservative and observe worker completion counts.
- Move to load profiles in HTTP Smoke and Load.
By team role¶
QA engineer¶
- Start with HTTP Smoke and Load for basic coverage.
- Add pass/fail visibility with CI Reporting Workflow.
- Use Complete Setups when validating advanced options.
Backend engineer¶
- Bootstrap from contracts using Import OpenAPI to Benchmark.
- Validate protocol behavior with WebSocket Check or gRPC Unary.
- Calibrate endpoint assertions in your imported benchmark.
Platform engineer¶
- Use Distributed Coordinator and Workers for horizontal execution.
- Tune worker lease controls and heartbeat intervals.
- Feed stable outputs into CI Reporting Workflow.
SRE¶
- Begin with HTTP Smoke and Load and add strict SLO thresholds.
- Run distributed scenarios from Distributed Coordinator and Workers.
- Publish trend artifacts with CI Reporting Workflow.
Example¶
# Pick a scenario page config and execute
glockit run --config ./examples/http-smoke.json