Skip to content

feat(o11y): add matched exact comparison and scoped resource reports - #526

Merged
zzylol merged 4 commits into
mainfrom
feat/o11ybench-comparison
Sep 8, 2026
Merged

zzylol merged 4 commits into
mainfrom
feat/o11ybench-comparison

Conversation

@zzylol

@zzylol zzylol commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Compare every o11ybench query occurrence with Prometheus using identical query strings, evaluation timestamps and input batches. Report label/sample completeness, numerical differences, failures, latency and process resource observations without claiming benchmark acceptance or speedup.

Before this PR, the execution harness recorded responses without a matched exact comparison. After this PR, missing groups or different values remain visible and suppress the aggregate latency ratio; response ordering alone does not count as an error. Optional separate fallback and baseline Prometheus processes avoid intentional sharing of their caches, and fallback CPU is charged to the backend. Per-process CPU affinity and virtual-address-space limits are explicit optional controls.

Validation: 13 Python comparison/replay tests passed, including odd-sized corpus order alternation and fallback CPU accounting; git diff --check passed. These tests use fixtures and do not establish real-workload performance.

Limitations: exact floating-point equality is deliberately conservative; approximate differences are reported without an invented tolerance. CPU has process/tick scope, HWM is process lifetime, RLIMIT_AS is not a physical-memory or aggregate process budget, external service startup and guaranteed cold caches remain unmeasured. The runner now uses #525’s explicit finite-input drain before measuring queries; input remains sealed for the process lifetime. This is not a live-ingestion watermark or proof of every readout’s coverage. Provider costs remain in their declared units, estimated/measured cost ratios remain null, and acceptance_complete remains false. This patch adds no logical/hybrid execution engine and depends only on the parent #525 interfaces.

@zzylol
zzylol marked this pull request as ready for review September 8, 2026 20:14
@zzylol
zzylol changed the base branch from feat/o11ybench-execution to main September 8, 2026 21:01
@zzylol
zzylol merged commit 2d70842 into main Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant