Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Access Group Performance Test
Summary
Unified access groups add a new permission layer that lets keys and teams reach models, MCP servers, and agents through shared groups instead of (or in addition to) native per-key/per-team model lists. This introduces additional DB lookups on the critical auth path: when native permissions don't satisfy a request, the proxy resolves each
access_group_idviaget_access_object()(onefind_uniqueper group, cache-first with 10-min TTL).This test measures the latency impact of that resolution across four categories of request to confirm the feature doesn't regress proxy performance.
Test Matrix
Test Scenarios
gpt-4ogpt-4ogpt-4ogpt-4obedrock-claude-sonnet-4bedrock-claude-sonnet-4nonexistent-modelnonexistent-modelWhat to compare
Test Setup
Access Groups
ag156a2374c-1e69-46da-af1e-383ef3568c98text-embedding-3-small,bedrock-claude-sonnet-4,bedrock-claude-sonnet-4.5,bedrock-claude-opus-4.5ag211471732-763f-4371-8f12-459f9197f6bdbedrock-nova-premier,bedrock-claude-sonnet-3.5Models on Proxy
Keys
sk-ctGZv4EFE97raVgHIzeZHg["gpt-4o"]sk-e3QqXXZzSU2gmM3lnq-RcQ["gpt-4o"]ag1,ag2sk-FvJ0wU_IiFwCwXO50KEPBwag-team-no-access-groupssk-fNCzqA43eJjx9qCFEwWJ5Qag-team-with-access-groupsTeams
ag-team-no-access-groupsc2d294d1-1398-46d8-972c-29fbc9428add["gpt-4o"]ag-team-with-access-groupse08b4e17-3b60-4c76-a354-f66e4bc9751f["gpt-4o"]ag1,ag2Metrics
For each scenario (50 requests per scenario):