Files
marqdo-cli/tools/perf/workloads.json
T
cflmy 1e2a045cc7
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
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.
2026-11-24 22:25:30 +08:00

142 lines
3.3 KiB
JSON

{
"schema": "marqdo.perf.workloads.v1",
"workloads": [
{
"name": "hello-check",
"kind": "check",
"source": "examples/hello.mq.md",
"argv": [
"check",
"examples/hello.mq.md",
"--json"
]
},
{
"name": "factorial-run",
"kind": "call",
"source": "examples/factorial.mq.md",
"argv": [
"call",
"examples/factorial.mq.md",
"数学.阶乘",
"--arg",
"n=5",
"--output",
"json"
],
"measure_argv": [
"call",
"examples/factorial.mq.md",
"数学.阶乘",
"--arg",
"n=5"
]
},
{
"name": "allocator-free-list",
"kind": "run",
"source": "tests/conformance/semantics/55-first-fit-free-list-allocator.mq.md",
"argv": [
"run",
"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"
]
},
{
"name": "json-parser",
"kind": "run",
"source": "tests/conformance/semantics/62-json-array-parser.mq.md",
"argv": [
"run",
"tests/conformance/semantics/62-json-array-parser.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/62-json-array-parser.mq.md"
]
},
{
"name": "table-sort",
"kind": "run",
"source": "tests/conformance/semantics/65-table-sort-stdlib.mq.md",
"argv": [
"run",
"tests/conformance/semantics/65-table-sort-stdlib.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/65-table-sort-stdlib.mq.md"
]
},
{
"name": "bytecode-vm",
"kind": "run",
"source": "tests/conformance/semantics/63-memory-bytecode-vm.mq.md",
"argv": [
"run",
"tests/conformance/semantics/63-memory-bytecode-vm.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/63-memory-bytecode-vm.mq.md"
]
},
{
"name": "matrix-multiply",
"kind": "run",
"source": "tests/conformance/semantics/70-matrix-multiply.mq.md",
"argv": [
"run",
"tests/conformance/semantics/70-matrix-multiply.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/70-matrix-multiply.mq.md"
]
},
{
"name": "http-parser",
"kind": "run",
"source": "tests/conformance/semantics/71-http-parser.mq.md",
"argv": [
"run",
"tests/conformance/semantics/71-http-parser.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"tests/conformance/semantics/71-http-parser.mq.md"
]
},
{
"name": "stdlib-print-demo",
"kind": "run",
"source": "stdlib/demo.mq.md",
"argv": [
"run",
"stdlib/demo.mq.md",
"--output",
"json"
],
"measure_argv": [
"run",
"stdlib/demo.mq.md"
]
}
]
}