How intel/agentsysperf works
AgentSysPerf is a pluggable, stack-level agent benchmark suite. Its principal workflow is to run a selected benchmark and agent, collect hardware measurements, analyze the results, persist them, and expose them through reports, exports, and dashboards. Separate capabilities include replay, Terminal-Bench streams, density sweeps, and scaling experiments. The README establishes the product-level flow; several implementation modules are unsampled, so uncertain runtime links are omitted or marked unverified.
Main entry points: runner.py Benchmark runner · cli.py CLI · litellm_terminal_loop.py Agent loops · sqlite_store.py SQLite result store
Components 24
Benchmark runtime
- CLI
src/cli.py - Run driver
src/run_driver.py - Benchmark runner
src/runner.py - Benchmark adapters
src/benchmarks - Agent loops
src/agent_loops/litellm_terminal_loop.py - Terminal environment
src/benchmarks/terminal_bench - Measurement probes
src/measurements - Optimization profiles
src/optimization_profiles/profiles.py - Platform detection
src/platform/detect.py - Record and replay
src/replay - Task streams
src/streams/orchestrator.py
Analysis and results
- Result analyzers
src/analyzers - SQLite result store
src/storage/sqlite_store.py - DuckDB analytics
src/storage/duckdb_analytics.py - Report generators
src/reporting - Metrics exporters
src/exporters
User interfaces
- Streamlit dashboards
demo_app.py - Dashboard data access
src/dashboard_data.py - Scaling visualizations
src/dashboard/scaling_views.py
Scaling studies
- Harbor density sweep
src/sweep/harbor_sweep.py - Agent scaling experiment
experiments/scaling/orchestrator.py - Synthetic agent workers
experiments/scaling/agent_worker.py - Scaling analysis
experiments/scaling/analysis.py
Other components
- Benchmark user
Connections 27
- Benchmark user → CLI: runs commands
- CLI → Run driver: starts runs
- Run driver → Benchmark runner: dispatches run
- Benchmark runner → Benchmark adapters: runs benchmark
- Benchmark runner → Agent loops: invokes agent
src/agent_loops/litellm_terminal_loop.py - Agent loops → Terminal environment: executes commands
src/agent_loops/litellm_terminal_loop.py - Agent loops → Record and replay: uses fixtures
src/agent_loops/litellm_terminal_loop.py - Agent loops → Measurement probes: emits step traces
- Benchmark runner → Measurement probes: collects layers
- Benchmark runner → Optimization profiles: discovers plugins
- Measurement probes → Platform detection: detects host
- Benchmark runner → Result analyzers: runs analysis
- Benchmark runner → SQLite result store: persists results
- CLI → Report generators: generates reports
- CLI → Metrics exporters: exports metrics
- CLI → DuckDB analytics: runs analytics
- Streamlit dashboards → Dashboard data access: reads data
demo_app.py - Dashboard data access → SQLite result store: reads canonical store
- CLI → Task streams: starts streams
- Task streams → Run driver: uses run driver
src/streams/orchestrator.py - Task streams → SQLite result store: opens store
src/streams/orchestrator.py - Harbor density sweep → SQLite result store: persists sweep
src/sweep/harbor_sweep.py - Harbor density sweep → Result analyzers: uses scaling analyzer
src/sweep/harbor_sweep.py - Agent scaling experiment → Synthetic agent workers: launches workers
experiments/scaling/orchestrator.py - Synthetic agent workers → Scaling analysis: produces results
- Scaling analysis → Scaling visualizations: feeds visualizations
- Streamlit dashboards → Scaling visualizations: shows scaling views
demo_app.py