perf(models): convert prefix/skill/command tuples to frozensets (#47)

* perf(models): convert prefix/skill/command tuples to frozensets

Use frozenset for CODEFLASH_AGENT_PREFIXES, CODEFLASH_SKILLS,
and CODEFLASH_COMMANDS for O(1) membership testing.

* style: format frozenset literals per ruff

* Add blackbox benchmark VM infra

D2s_v5 (non-burstable, 2 vCPU, 8 GB) with cloud-init provisioning,
CPU-pinned benchmarks, and A/B comparison scripts.

---------

Co-authored-by: codeflash[bot] <codeflash[bot]@users.noreply.github.com>
This commit is contained in:
Kevin Turcios 2026-04-29 03:22:50 -05:00 committed by GitHub
parent e4fcbb5b83
commit 6ddc97a575
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,7 +195,8 @@ class SessionDigest:
# Codeflash plugin detection
# ---------------------------------------------------------------------------
CODEFLASH_AGENT_PREFIXES = (
CODEFLASH_AGENT_PREFIXES = frozenset(
{
"codeflash",
"codeflash-python",
"codeflash-deep",
@ -230,17 +231,22 @@ CODEFLASH_AGENT_PREFIXES = (
"codeflash-java-scan",
"codeflash-java-ci",
"codeflash-java-pr-prep",
}
)
CODEFLASH_SKILLS = (
CODEFLASH_SKILLS = frozenset(
{
"codeflash-optimize",
"memray-profiling",
}
)
CODEFLASH_COMMANDS = (
CODEFLASH_COMMANDS = frozenset(
{
"codex-review",
"codex-setup",
"codex-status",
}
)