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.
231 lines
5.9 KiB
JSON
231 lines
5.9 KiB
JSON
{
|
|
"measure_argv": [
|
|
"run",
|
|
"tests/conformance/semantics/62-json-array-parser.mq.md"
|
|
],
|
|
"measure_sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"normalized": {
|
|
"events": {
|
|
"by_kind": {
|
|
"branch.eval": 632,
|
|
"call.enter": 341,
|
|
"call.exit": 341,
|
|
"loop.iteration": 208,
|
|
"parameter.observed": 567,
|
|
"return": 341,
|
|
"run.completed": 1,
|
|
"run.started": 1,
|
|
"stream.opened": 1,
|
|
"variable.assigned": 700
|
|
},
|
|
"count": 3133,
|
|
"sequence_sha256": "sha256:cac83ea2856c09d105554b0e0d3bd1ed3d2541c19af51bddf236ab9b6e87f354"
|
|
},
|
|
"schema": "marqdo.observation",
|
|
"status": "ok",
|
|
"stderr": {
|
|
"bytes": 0,
|
|
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
},
|
|
"stdout": {
|
|
"bytes": 0,
|
|
"sha256": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
},
|
|
"terminal": {
|
|
"status": "ok",
|
|
"value": {
|
|
"items": [
|
|
{
|
|
"entries": {
|
|
"next": {
|
|
"decimal": "20",
|
|
"type": "int"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": true
|
|
},
|
|
"value": {
|
|
"items": [
|
|
{
|
|
"decimal": "1",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"decimal": "23",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"items": [
|
|
{
|
|
"decimal": "4",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"decimal": "5",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "list"
|
|
},
|
|
{
|
|
"decimal": "-6",
|
|
"type": "int"
|
|
}
|
|
],
|
|
"type": "list"
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"entries": {
|
|
"code": {
|
|
"type": "text",
|
|
"value": "json.invalid_array"
|
|
},
|
|
"message": {
|
|
"type": "text",
|
|
"value": "数组缺少逗号或 ]"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": false
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"entries": {
|
|
"code": {
|
|
"type": "text",
|
|
"value": "json.unexpected_eof"
|
|
},
|
|
"message": {
|
|
"type": "text",
|
|
"value": "数组未闭合"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": false
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"entries": {
|
|
"next": {
|
|
"decimal": "35",
|
|
"type": "int"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": true
|
|
},
|
|
"value": {
|
|
"entries": {
|
|
"a": {
|
|
"decimal": "1",
|
|
"type": "int"
|
|
},
|
|
"b": {
|
|
"items": [
|
|
{
|
|
"type": "bool",
|
|
"value": true
|
|
},
|
|
{
|
|
"type": "none"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"value": "说\"好"
|
|
}
|
|
],
|
|
"type": "list"
|
|
}
|
|
},
|
|
"type": "map"
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"entries": {
|
|
"next": {
|
|
"decimal": "6",
|
|
"type": "int"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": true
|
|
},
|
|
"value": {
|
|
"type": "text",
|
|
"value": "a\nb"
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"entries": {
|
|
"next": {
|
|
"decimal": "37",
|
|
"type": "int"
|
|
},
|
|
"ok": {
|
|
"type": "bool",
|
|
"value": true
|
|
},
|
|
"value": {
|
|
"items": [
|
|
{
|
|
"decimal": "1",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"type": "float",
|
|
"value": 2.5
|
|
},
|
|
{
|
|
"type": "float",
|
|
"value": -300.0
|
|
},
|
|
{
|
|
"type": "float",
|
|
"value": 0.4
|
|
},
|
|
{
|
|
"entries": {
|
|
"a": {
|
|
"type": "float",
|
|
"value": 1.0
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"value": "x"
|
|
}
|
|
],
|
|
"type": "list"
|
|
}
|
|
},
|
|
"type": "map"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"value": "[1, 2.5, -300.0, 0.4, {\"a\": 1.0}, \"x\"]"
|
|
}
|
|
],
|
|
"type": "list"
|
|
},
|
|
"value_type": "List"
|
|
}
|
|
},
|
|
"schema": "marqdo.perf.expected.v1",
|
|
"wire_sha256": "sha256:c9833930c28ef238a606db40b33005338e75b83cf9ad98ffaa16f6d9f371a12a",
|
|
"workload": "json-parser"
|
|
}
|