uprof_compare
Compare two stored profiling results function-by-function to spot regressions. Get a pass/fail verdict with threshold and noise floor controls, and optional failure on regression to gate automated optimization loops.
Instructions
Compare two stored results function-by-function and issue a pass/fail verdict.
The core of an optimize loop: collect a baseline, change code, collect a
candidate, compare. The verdict fails when the total or any significant
function regresses more than threshold_pct; functions below
noise_floor_pct of both runs never affect the verdict. With
fail_on_regression=true a failing verdict raises a tool error carrying the
reason — use that to gate automated loops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline_id | Yes | ||
| candidate_id | Yes | ||
| threshold_pct | No | ||
| noise_floor_pct | No | ||
| fail_on_regression | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| notes | Yes | ||
| metric | Yes | ||
| verdict | Yes | ||
| baseline_id | Yes | ||
| candidate_id | Yes | ||
| total_baseline | Yes | ||
| total_candidate | Yes | ||
| total_delta_pct | Yes |