rlt allows you to track performance changes over time by saving and comparing results.
Saving a Baseline
Save current results with a name:
mybench --url http://localhost:8080 -c 10 -d 30s --save-baseline v1.0
Baselines are stored in target/rlt/baselines/ by default. You can change this using --baseline-dir or the RLT_BASELINE_DIR environment variable.
Comparing Against a Baseline
Compare a new run against a saved baseline. The output shows color-coded deltas:
- Green: Performance improved
- Red: Performance regressed
- Yellow: Within noise threshold (unchanged)
mybench --url http://localhost:8080 -c 10 -d 30s --baseline v1.0
CI/CD Integration
To automatically fail a pipeline if performance regresses, use --fail-on-regression. You can also specify which metrics to monitor using --regression-metrics (e.g., latency-p99, success-ratio).
# Fail on regression
mybench --baseline main --fail-on-regression
# Fail on specific metrics
mybench --baseline main --fail-on-regression --regression-metrics latency-p99,success-ratio
Compare and Save
You can compare against an old version and save the new result as a new baseline in one command:
mybench --baseline v1 --save-baseline v2