How measurement works
Profiling measures execution calls. LexQ sends them to the live version, or some of them to the test version while an A/B test is running.
The engine total is the time the engine takes for one request, or for one item of a batch:
evaluation and synchronous actions, plus the time to prepare the version on a cache
MISS. In a
sampled call, LexQ also measures each rule’s condition evaluation time, and the action time of
every rule that fired (SELECTED in decisionTraces).
If you select an older version in the Versions list, the tab shows only what was recorded
while LexQ was routing calls to it, and only if that period falls inside the selected range.
- Cache dimension. Executions on a version already prepared for execution (
HIT) and executions that had to prepare the version first (MISS) are shown separately. - 60-second windows. Observations aggregate into 60s windows. Missing windows are shown as genuine gaps — never interpolated.
- Honest percentiles. Every percentile is accompanied by its sample count
n. A percentile is shown only when at least 3 observations sit beyond it (n×(1−q) ≥ 3— p50 from 6, p95 from 60, p99 from 300 samples); otherwise it is withheld (nullin the API,–in the console) instead of fabricated.
Slow-rule judgment — relative only
A rule is flagged when its p50 is at least 10× the median of per-rule p50s within the same group, version, phase, and cache state. Judgment requires a cohort of at least 3 rules withn ≥ 100 each. This judgment gate is separate from the per-percentile display gate — a rule
can be flagged while its p99 is still withheld.
Console
Open a policy group and select the Performance tab. It shows the version selected in the Versions list on the left, which is the live version until you pick another. The Total execution time cards at the top show the engine total for each cache state.- Presets 1h / 24h / 7d, a HIT / MISS cache toggle, and per-percentile colors (p50 / p95 / p99) used consistently across cards, tables, and charts.
- The rule table shows samples, percentiles, the multiple vs. baseline (
×1.2), and a Slow badge when flagged. - Click a rule for the detail view: a summary per phase × cache state (merged over the window), plus a dot-per-window time series. Dots are raw window values; a gap means those windows have no sample for this rule.
API
2 read endpoints under the Management API (x-api-key auth):
versionId (default: live version), from / to
(ISO-8601 instants, half-open range [from, to), default: last 24h), and cacheState
(HIT | MISS, default HIT, overview only). An empty or inverted range (from ≥ to)
returns error P-035.
Response semantics worth knowing:
- A percentile field is
nullwhen its display gate (n×(1−q) ≥ 3) is not met;nis always present. Mixed responses — p50 present, p99null— are normal. baselines[].statusisINSUFFICIENT_COHORTuntil 3 qualifying rules exist.droppedRowscounts measurements that could not be read and were left out of the result.
CLI & MCP
lexq_profile_overview and
lexq_profile_rule.
Overhead & retention
Profiling is designed to never compete with your decisions:- Profiling adds negligible overhead, and a profiling failure never affects a decision.
- Windows are queryable for 35 days, then archived. Available on every plan.
Per-rule timings come from a 1% sample, so a rule-level percentile needs about 100 times its
sample count (see Honest percentiles) in calls within the selected range. Until then it
shows
–. In a low-traffic group, pick a longer range such as 7d. The engine total is
recorded for every Single Group call and every batch item, so its percentiles appear sooner.
