AgentScope Benchmark Runner
This skill generates benchmark configs and a runner for AgentScope 2.0 agents. It focuses on reproducible performance measurement for:
- single-agent latency
- pipeline throughput
- token usage estimation
- prompt variant comparison
What this skill does
- Creates benchmark scenario files
- Generates a runner script for repeated measurements
- Outputs JSON/CSV results for analysis
- Supports baseline and variant comparisons
How to use
Run the generator script from this skill folder:
python3 scripts/generate_benchmark.py --output /path/to/benchmarks --scenario latency
Supported scenarios:
latency- single request latency benchmarkthroughput- concurrent request throughput benchmarkcompare- prompt/model variant comparison
After generation:
cd /path/to/benchmarks
python run_benchmark.py
Security notes
- Generated configs use placeholder API keys
- No secrets are hardcoded in benchmark files
- Results files may contain prompt text; review before sharing
Troubleshooting
- If agentscope import fails, install the package:
pip install agentscope - For model-specific benchmarks, configure the provider credentials
- High concurrency benchmarks may hit rate limits; adjust
--concurrency
