perf: add correctness-verified marqdo.perf.v2 sampler
ci/woodpecker/push/woodpecker Pipeline was canceled
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
ci/woodpecker/push/woodpecker Pipeline was canceled
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s
Linux strict security lane (G-C) / strict isolation escape matrix (push) Canceled after 0s
Replace the three-run baseline profile with tools/perf/runner.py: one fixed release binary, per-child rusage via posix_spawn/wait4, 5 warmups and 20 samples by default, SHA-derived interleaved order, p50/p95/MAD, CPU user/sys and peak RSS. Every warmup output is normalized and compared with a committed wire digest before timing; a mismatch is CORRECTNESS_FAIL, never a fast sample. Short or unapproved-host runs are SMOKE, and baselines from another platform_id/profile are refused. Add workloads.json, expected digests for nine existing workloads, a dedicated fixed-node workflow (manual, self-hosted, requires --cpu-list), and docs/performance.md. bench.py stays as a compatibility shim. This is step 5 of the CI/security RFC (B08).
This commit is contained in:
1 parent
990e984ab6
commit
d2267e912a
16 files changed
+1615
-93
No files matched your search
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"normalized": {
|
||||
"command": "run",
|
||||
"stderr": "",
|
||||
"stdout": "",
|
||||
"success": true,
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"schema": "marqdo.perf.expected.v1",
|
||||
"wire_sha256": "sha256:d6f795f43eb1ae4c3d2f04254b8135f71d717ef8a649efdf7785f172b5381011",
|
||||
"workload": "json-parser"
|
||||
}
|
||||
Reference in new issue
Block a user