perf: time the execution path, not the opt-in Observation document
The first rc.3 perf comparison reused the old workload commands but switched them to `run/call --output json`, so the candidate was timed while producing thousands of structural events that the beta baseline never emitted. The result was a reproducible +240..+375% p50 and +130% RSS delta caused by the measurement, not by the program's execution cost. - Give each run/call workload a correctness command (current Observation snapshot, full contract digest) and a measurement command (plain execution path, committed text digest). - Verify the correctness digest once per workload and the measurement digest on every timed sample; a wrong or changed output is never timed. - Re-record the expected digests and extend the tooling tests. - A protocol document that is produced only on request must not be billed as an execution regression.
This commit is contained in:
1 parent
f211568c42
commit
1e2a045cc7
12 files changed
+223
-57
No files matched your search
+10
-6
@@ -8,12 +8,16 @@ workload whose wire output did not match the committed expected digest.
|
||||
* Build one release binary with `cargo build --release --locked -p marqdo-cli`
|
||||
and keep it fixed for the whole run. The report records its SHA256, the
|
||||
`Cargo.lock` digest, `rustc -vV`, source SHA and profile.
|
||||
* Correctness comes first: every warmup run is parsed and hashed. A mismatch
|
||||
is `CORRECTNESS_FAIL`; its faster wall time is never reported.
|
||||
`run`/`call` workloads request the current Observation snapshot
|
||||
(`--output json`); the digest pins the terminal status/result, the committed
|
||||
stdout/stderr byte digests and the ordered event-kind counts, never a run id
|
||||
or a host path, so it is stable across invocations.
|
||||
* Correctness comes first. Each workload has one correctness command and one
|
||||
measurement command. For `run`/`call` the correctness command requests the
|
||||
current Observation snapshot (`--output json`) and its digest pins the
|
||||
terminal status/result, the committed stdout/stderr byte digests and the
|
||||
ordered event-kind counts; the measurement command is the same program
|
||||
without the opt-in observability destination, and every timed sample must
|
||||
reproduce the committed text digest. A mismatch is `CORRECTNESS_FAIL`; its
|
||||
faster wall time is never reported. Comparing the timed execution path
|
||||
against the baseline execution path is the point: an opt-in protocol document
|
||||
must not be billed as a product regression.
|
||||
* Approved-node release evidence needs at least 5 warmups and 20 samples per
|
||||
workload on a dedicated, stable node. A maintainer-approved shared-node
|
||||
RC comparison needs the same sample counts in at least three paired runs.
|
||||
|
||||
Reference in new issue
Block a user