@@ -25,23 +25,21 @@ const (
2525// size on governance query latency, independent of the customers/features axes
2626// BenchmarkGovernanceQuery already covers. It fixes a small, constant query
2727// load (100 customers, matching the OAS customer-key cap, x 1 feature) so the
28- // entitlement GetAccess fan-out cost — the dominant cost per
29- // BenchmarkGovernanceQuery's doc comment — stays flat across sub-benchmarks,
30- // and varies only how many OTHER customers/subjects exist in the namespace
31- // (decoys, never queried, seeded directly via SQL for speed, not HTTP).
28+ // entitlement GetAccess fan-out cost stays flat across sub-benchmarks, and
29+ // varies only how many other (never-queried) customers/subjects exist in the
30+ // namespace.
3231//
33- // This targets the customer usage-attribution resolution path specifically:
34- // pre-UNION-ALL, a large decoy count made GetCustomersByUsageAttribution
35- // seq-scan the customers table (see #4684 and the follow-up bulk fix); this
36- // benchmark shows whether decoy count still moves total request latency
37- // post-fix. Decoy counts accumulate across sub-benchmarks (0 -> 10k -> N), so
38- // each step only seeds the incremental delta.
32+ // This targets the customer usage-attribution resolution path: pre-UNION-ALL,
33+ // a large decoy count made GetCustomersByUsageAttribution seq-scan the
34+ // customers table (see #4684 and the follow-up bulk fix); this benchmark shows
35+ // whether decoy count still moves total request latency post-fix. Decoy
36+ // counts accumulate across sub-benchmarks (0 -> 10k -> N), so each step only
37+ // seeds the incremental delta.
3938//
40- // Requires direct Postgres access alongside OPENMETER_ADDRESS (see
41- // initE2EPostgresPool) — creating decoys over HTTP would dominate the
42- // benchmark's own setup time long before showing anything about the query
43- // path. Set GOV_BENCH_NAMESPACE_DECOYS to change the top decoy count from the
44- // default 100,000.
39+ // Decoys are seeded directly via SQL (not HTTP, which would dominate setup
40+ // time) and require direct Postgres access alongside OPENMETER_ADDRESS (see
41+ // initE2EPostgresPool). Set GOV_BENCH_NAMESPACE_DECOYS to change the top
42+ // decoy count from the default 100,000.
4543func BenchmarkGovernanceQueryNamespaceScale (b * testing.B ) {
4644 client := initClient (b )
4745 v3 := newV3Client (b )
0 commit comments