.http files you write for functional tests to run load tests — no separate tool needed.
Quick Start
Two Modes
Rate Mode (default)
Sends requests at a fixed rate (requests per second):Virtual User Mode
Simulates concurrent users, each sending requests sequentially with optional think time:Ramp-Up
Gradually increase load instead of starting at full capacity:Thresholds
Set pass/fail criteria based on performance metrics:1.
Available threshold metrics:
p50— 50th percentile latencyp95— 95th percentile latencyp99— 99th percentile latencyerrors— Error rate percentage
Stress Profiles
Define reusable profiles inhitspec.yaml:
Multiple Files
Stress test across multiple files:Output
Real-time Progress
By default, hitspec shows a live progress bar with current RPS, latency, and error count. Disable with--no-progress.
JSON Output
Metrics Export
Export to Prometheus, DataDog, or JSON for dashboards:CI/CD Integration
0— all thresholds met1— one or more thresholds exceeded