Skip to content

Benchmarks

Commander is benchmarked across security, reliability, performance, chaos, and capability. Numbers below are from the product README / monorepo scripts — re-run them yourself for current baselines.

Headline matrix (product README)

SuiteCoverageResult (as documented)
Chaos Engineering255 synthetic + 55 mutation55.7% pass rate
Red Team47 scenarios, 8 attack categories100% defense
AgentDojo12 security test cases100% defense
RealWorld50 production-like cases96% pass rate
GAIA SpineCore capabilityRunning daily
SLOAPI success / latencyMeasured daily

Source of truth: monorepo BENCHMARK.md.

Reproduce (from Commander repo)

bash
pnpm benchmark:all          # multi-suite readiness
pnpm benchmark:redteam      # 47 scenarios
pnpm benchmark:agentdojo    # injection suite
pnpm benchmark:chaos        # chaos (simulated default)
pnpm bench:slo              # SLO baseline
pnpm check:readiness        # baseline freshness

Individual scripts and baseline paths are listed in BENCHMARK.md. Prefer CI artifacts over marketing screenshots.

Reliability SLO Targets

Design goals for v0.2.0. Implementation is complete; CI timing enforcement is scheduled for v0.3.0.

TargetGoalImplementationCI-Measured
Checkpoint Recovery<5 secondsSQLite WAL + in-memory cache layer
Failover<10 secondsProvider fallback chain + circuit breaker
Compensation<30 secondsSaga compensation scheduler
DLQ Processing<60 secondsAppend-only ndjson + replay

Measurement Status

ComponentModuleStatus
Checkpoint Recoveryruntime/checkpointStore.ts✅ Implemented, manual verification
Failoverruntime/modelRouter.ts + saga/circuitBreakerRegistry.ts✅ Implemented, manual verification
Compensationsaga/compensationScheduler.ts✅ Implemented, unit-tested
DLQ Processingruntime/deadLetterQueue.ts✅ Implemented, unit-tested

Health Check Components

The /health/detailed endpoint monitors 8 components:

ComponentWhat it checksDegraded when
MemoryHeap usage>80% of available
Circuit BreakerOpen breakersAny breaker in OPEN state
Dead Letter QueueQueue size>100 pending entries
CheckpointStalenessLast checkpoint >60s ago
CompensationPending count>10 pending compensations
Event BusBacklog>1000 unprocessed events
ProvidersAvailabilityAny provider unreachable
Disk SpaceFree space<1GB available

Chaos Engineering Benchmark

Commander's chaos benchmark validates resilience across 255 test cases covering 6 business domains and 3 mutation axes.

Benchmark Overview

MetricValue
Total test cases255
Synthetic scenarios200
Real-world mutation cases55
Real-world anchors47
Anchor coverage74.5%

Business Domains

DomainDescription
A: LeaderboardReal-time ranking with concurrent updates
B: MatchmakingMulti-party matching with availability constraints
C: UGC PipelineUser-generated content processing with moderation
D: Push/BroadcastNotification delivery with rate limiting
E: Virtual CurrencyTransaction processing with balance consistency
F: Live StreamingReal-time streaming with adaptive bitrate

Mutation Axes

AxisWhat it tests
Telemetry Gap (Fog of War)Missing observability data, blind spots in monitoring
Stochastic/Gray FailureIntermittent failures, partial degradation
Security-Stability ConvergenceAttacks that degrade stability, security-stability tradeoffs

Chaos Layers

LayerFault TypesRecovery Mechanisms
L1: LLMRate limits, timeouts, context overflow, malformed responsesProvider fallback chain
L2: Toolhttp_5xx, http_4xx, disk_full, oom, process_crash, state_corrupt, dependency_unavailable, time_drift, auth_expired, http_timeoutCircuit breaker, DLQ, compensation
L3: SystemCPU throttle, memory pressure, disk fullCheckpoint recovery, graceful degradation
L4: TenantCross-tenant access, resource exhaustionTenant isolation, blast radius enforcement

Running the Benchmark

bash
# Run full 255-case benchmark
npx tsx packages/core/src/cli/commands/chaos.ts --layers=L1,L2,L3,L4 --tenant=bench --duration=300

# Run specific domain
npx tsx packages/core/src/cli/commands/chaos.ts --layers=L1,L2 --tenant=bench --fault-types=payment_timeout,rate_limit

Topology Performance

Commander's 5 canonical topologies are optimized for different task profiles:

TopologyBest ForTypical LatencyAgent Count
SINGLESimple, well-defined tasks<5s1
CHAINMulti-step sequential transformations10–30s2–3
DISPATCHIndependent parallel subtasks15–45s2–10
ORCHESTRATORComplex decomposition with specialists30–120s3–8
REVIEWHigh-risk decisions needing validation30–120s2–5

Topology Selection Criteria

The deliberation engine scores topologies based on:

FactorWeightImpact
Task type (CODING, RESEARCH, etc.)HighMaps to topology strengths
DAG width (parallelism potential)MediumFavors DISPATCH
Critical path lengthMediumFavors CHAIN or ORCHESTRATOR
Coupling between subtasksMediumFavors SINGLE or CHAIN
Cost constraintsLowFalls back to cheaper topology

Provider Latency

Typical latency characteristics (varies by region and load):

ProviderTierInput LatencyOutput LatencyContext Window
OpenAI GPT-4oPower200–500ms30–80ms/token128K
Anthropic Claude SonnetPower300–600ms40–90ms/token200K
DeepSeek ChatEco150–400ms20–60ms/token64K
Groq Llama 3Eco50–150ms10–30ms/token8K
Google Gemini 1.5Standard200–500ms30–70ms/token1M

Failover Chain

When a provider fails, Commander automatically falls through the configured chain:

Primary Provider → Timeout/Error → Circuit Breaker OPEN → Next Provider → ...

Failover time: typically <10 seconds (SLO target).

Test Suite

CategoryCountCommand
Unit~3000pnpm --filter @commander/core test:quick
Core~2000pnpm --filter @commander/core test
Full6700+cd packages/core && npx vitest run --no-cache
Security89pnpm --filter @commander/core test:security
Integration81pnpm --filter @commander/core test:node:pathsec
Chaos255npx tsx packages/core/src/cli/commands/chaos.ts

Coverage Thresholds

MetricThreshold
Statements60%
Functions70%
Lines60%

Reproducing Benchmarks

bash
# Clone and install
git clone https://github.com/PStarH/Commander.git
cd Commander && pnpm install

# Run core tests
pnpm --filter @commander/core test

# Run chaos benchmark
npx tsx packages/core/src/cli/commands/chaos.ts --layers=L1,L2,L3,L4 --tenant=bench

# Run type check
cd packages/core && npx tsc --noEmit

MIT Licensed — Built for multi-agent orchestration.