Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/hardening/resource_budgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Covered benchmark families:

- Budgets are intentionally conservative to reduce false positives in shared CI environments.
- `BenchmarkInstallLocalTypical` budget reflects full local install integrity work (JCS digest, signature verification, and atomic fsync writes), not a metadata-only path.
- Absolute `max_ns_op` ceilings should stay rounded above repeated release-host medians and close to the baseline regression envelope tracked in `perf/bench_baseline.json`.
- When a benchmark repeatedly lands within a few percent of the regression ceiling on supported release hosts, refresh the baseline or factor in the same change that established the new steady state.
- Tightening a budget requires:
1. Baseline refresh in `perf/bench_baseline.json`
2. Updated budget rationale in this document
Expand Down
2 changes: 1 addition & 1 deletion perf/bench_baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"benchmarks": {
"BenchmarkEvaluatePolicyTypical": {
"baseline_ns_op": 7054,
"max_regression_factor": 4.0
"max_regression_factor": 4.2
},
"BenchmarkVerifyZipTypical": {
"baseline_ns_op": 98898,
Expand Down
12 changes: 6 additions & 6 deletions perf/resource_budgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
"max_allocs_op": 320
},
"BenchmarkVerifyZipTypical": {
"max_ns_op": 260000,
"max_ns_op": 400000,
"max_allocs_op": 700
},
"BenchmarkDiffRunpacksTypical": {
"max_ns_op": 900000,
"max_ns_op": 1000000,
"max_allocs_op": 3500
},
"BenchmarkSnapshotTypical": {
"max_ns_op": 220000,
"max_ns_op": 255000,
"max_allocs_op": 900
},
"BenchmarkDiffSnapshotsTypical": {
"max_ns_op": 6000,
"max_allocs_op": 20
},
"BenchmarkVerifyPackTypical": {
"max_ns_op": 220000,
"max_ns_op": 280000,
"max_allocs_op": 350
},
"BenchmarkBuildIncidentPackTypical": {
"max_ns_op": 1600000,
"max_ns_op": 2600000,
"max_allocs_op": 3500
},
"BenchmarkInstallLocalTypical": {
"max_ns_op": 25000000,
"max_ns_op": 30000000,
"max_allocs_op": 700
},
"BenchmarkVerifyInstalledTypical": {
Expand Down
Loading