go_benchmark
Run Go benchmarks to measure code performance with custom patterns, durations, and memory statistics.
Instructions
Run Go benchmarks to measure code performance
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": "go_benchmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPU counts to test (e.g., [1, 2, 4]) | |
| args | No | Additional arguments | |
| count | No | Run each benchmark n times | |
| package | No | Go package to benchmark (e.g., ./...) | |
| timeout | No | Command timeout in milliseconds | |
| benchmem | No | Print memory allocation statistics | |
| benchtime | No | Benchmark duration (e.g., 10s, 100x) | |
| directory | No | Working directory | |
| benchmarks | No | Benchmark pattern to run (e.g., BenchmarkFoo) |