perf: time the execution path, not the opt-in Observation document
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful

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:
cflmy committed 2026-11-24 22:25:30 +08:00
1 parent f211568c42
commit 1e2a045cc7
12 files changed
+223 -57

No files matched your search

+35
View File
@@ -23,6 +23,13 @@
"n=5",
"--output",
"json"
],
"measure_argv": [
"call",
"examples/factorial.mq.md",
"数学.阶乘",
"--arg",
"n=5"
]
},
{
@@ -34,6 +41,10 @@
"tests/conformance/semantics/55-first-fit-free-list-allocator.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/55-first-fit-free-list-allocator.mq.md"
]
},
{
@@ -45,6 +56,10 @@
"tests/conformance/semantics/62-json-array-parser.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/62-json-array-parser.mq.md"
]
},
{
@@ -56,6 +71,10 @@
"tests/conformance/semantics/65-table-sort-stdlib.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/65-table-sort-stdlib.mq.md"
]
},
{
@@ -67,6 +86,10 @@
"tests/conformance/semantics/63-memory-bytecode-vm.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/63-memory-bytecode-vm.mq.md"
]
},
{
@@ -78,6 +101,10 @@
"tests/conformance/semantics/70-matrix-multiply.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/70-matrix-multiply.mq.md"
]
},
{
@@ -89,6 +116,10 @@
"tests/conformance/semantics/71-http-parser.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/71-http-parser.mq.md"
]
},
{
@@ -100,6 +131,10 @@
"stdlib/demo.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"stdlib/demo.mq.md"
]
}
]