esp32_component_benchmark
Benchmark ESP32-connected components over I2C, SPI, or UART to measure latency, throughput, polling rate, error rate, and stability; report statistics and separate measured from documented maximums.
Instructions
STAGE 13 (PERFORMANCE CHARACTERISATION). Measures response latency, transaction time, throughput, polling rate, repeated-read consistency, error rate and communication stability for a component. Reports min/max/mean/median/standard deviation and separates the MEASURED maximum (what this setup actually sustained, a floor on the hardware) from the DOCUMENTED maximum (the datasheet figure, unverified). It never claims a hardware limit from a measurement.
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": {
"component": "<component>"
},
"name": "esp32_component_benchmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cs | No | Chip-select GPIO (SPI, required for SPI) | |
| rx | No | RX GPIO (UART) | |
| tx | No | TX GPIO (UART) | |
| scl | No | SCL GPIO (I2C) | |
| sda | No | SDA GPIO (I2C) | |
| baud | No | UART baud rate | |
| miso | No | MISO GPIO (SPI) | |
| mode | No | SPI mode 0-3 | |
| mosi | No | MOSI GPIO (SPI) | |
| port | No | Serial port (optional) | |
| sclk | No | SCLK GPIO (SPI) | |
| address | No | I2C address (optional) | |
| clockHz | No | SPI clock in Hz | |
| component | Yes | Component profile id, part number or alias | |
| interface | No | Interface to benchmark over (default: I2C) | I2C |
| timeoutMs | No | Request timeout in ms (optional) | |
| benchmarks | No | Benchmark ids or names to run (optional — runs all if omitted) | |
| iterations | No | Iterations per benchmark, 1-200. Capped at the profile limit for the component. | |
| frequencyHz | No | I2C frequency in Hz |