benchmark_local
Benchmarks an ONNX model on the current machine with ONNX Runtime and checks FPS, P95 latency, model size, and provider constraints to produce a deployment PASS/FAIL result.
Instructions
Benchmark an ONNX model on the current machine with ONNX Runtime and optionally evaluate deployment constraints. Without provider, CUDA is tried when listed and CPU is used if it fails to load.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "benchmark_local"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | ||
| model | Yes | Absolute path to the .onnx model file | |
| minFps | No | ||
| warmup | No | ||
| maxP95Ms | No | ||
| provider | No | ||
| maxModelMb | No | ||
| inputShapes | No | Per-input shape overrides for dynamic models, e.g. {"images": [1, 3, 640, 640]} | |
| requireProvider | No | Gate check: fail unless this execution provider was actually used (e.g. CUDAExecutionProvider) | |
| defaultDynamicDim | No | Value substituted for dynamic dimensions without an explicit override (default 1) |