test(coderd/rbac): add many-orgs authorization benchmark - #27270
Conversation
|
Results from this benchmark comparing Summary: #27244's partial-eval (
Memory follows the same shape: Full benchstat output (sec/op, B/op, allocs/op)Methodology: Coder Agents on behalf of @Emyrk. |
Adds
BenchmarkRBACManyOrgsto measureAuthorize,Prepare(partial evaluation), andPrepare+CompileToSQLas a subject's org-membership count grows (1, 5, 10, 50, 100 orgs).WithCachedASTValue), member + per-orgorganization-memberroles,ScopeAll; authorizer has no cache so each iteration measures a real evaluation.Results comparing
mainvs #27244 are posted on that PR.Coder Agents on behalf of @Emyrk.