python_benchmark
Run performance benchmarks with pytest-benchmark, analyze execution times statistically, and compare results against baselines to identify regressions.
Instructions
Run performance benchmarks using pytest-benchmark with statistical analysis
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "python_benchmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| json | No | Output results as JSON | |
| save | No | Save results to baseline | |
| warmup | No | Number of warmup iterations | |
| compare | No | Compare against saved baseline | |
| timeout | No | Command timeout in milliseconds | |
| directory | No | Working directory | |
| benchmarks | No | Benchmark pattern to run (e.g., test_benchmark_) |