go_benchmark
Run Go benchmarks to measure code performance with custom patterns, durations, and memory statistics.
Instructions
Run Go benchmarks to measure code performance
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) |