reassure â React Component Performance Gate â
Parses a Reassure performance measurement report and fails if any component's mean render time has regressed beyond the configured threshold compared to the baseline.
Usage â
greengate reassure [OPTIONS]
Options:
--current <FILE> Path to current Reassure measurement file [default: output/current.perf]
--baseline <FILE> Path to baseline Reassure measurement file [default: output/baseline.perf]
--threshold <N> Maximum mean-time regression % before failing [default: 15.0]
-h, --help Print helpIf --baseline is omitted and no baseline file is found, greengate runs in report-only mode â it prints the current measurements but does not fail.
Examples â
bash
# Gate with default 15% threshold
greengate reassure
# Custom threshold
greengate reassure --threshold 10
# Explicit file paths
greengate reassure \
--current output/current.perf \
--baseline output/baseline.perf \
--threshold 15Workflow in CI â
- Run
reassure measurein your frontend test job - Upload
output/current.perfas a CI artifact - Download it in a subsequent job and run
greengate reassure
yaml
- name: Download Reassure report
uses: actions/download-artifact@v4
with:
name: reassure-report
path: output/
continue-on-error: true
- name: Reassure performance gate
if: hashFiles('output/current.perf') != ''
run: greengate reassure --threshold 15Sample output â
âšī¸ Comparing Reassure report: output/current.perf vs output/baseline.perf
â ī¸ Regressions found (threshold: 15.0%):
Button: mean 12.4ms â 18.7ms (+51.0%)
Modal: mean 8.2ms â 9.7ms (+18.3%)
Error: Reassure gate failed: 2 component(s) exceeded the regression threshold.