# benchmark

Python API: `modelconverter.platforms.rvc3.benchmark`

Benchmarking of converted models on RVC3 devices.

Loads the model through the OpenVINO inference engine onto the `VPUX` plugin of a connected RVC3 device and measures its
throughput and latency under a varying number of concurrent inference requests.

## Classes

| Name | Description |
| --- | --- |
| [`RVC3Benchmark`](https://docs.luxonis.com/software-v3/ai-inference/conversion/rvc-conversion/offline/modelconverter/modelconverter-api-reference/platforms/rvc3/benchmark.md#benchmark-Classes-RVC3Benchmark) | Benchmark of a converted model running on an RVC3 device. |

### class `RVC3Benchmark`

```python
class RVC3Benchmark(Benchmark)
```

Benchmark of a converted model running on an RVC3 device.

Properties

| Name | Type | Description |
| --- | --- | --- |
| [`all_configurations`](https://docs.luxonis.com/software-v3/ai-inference/conversion/rvc-conversion/offline/modelconverter/modelconverter-api-reference/platforms/rvc3/benchmark.md#benchmark-Classes-RVC3Benchmark-all_configurations) | `list[Configuration]` | The configurations used by the full benchmark. |
| [`default_configuration`](https://docs.luxonis.com/software-v3/ai-inference/conversion/rvc-conversion/offline/modelconverter/modelconverter-api-reference/platforms/rvc3/benchmark.md#benchmark-Classes-RVC3Benchmark-default_configuration) | `Configuration` | Default configuration for RVC3 benchmarking. |

Methods

| Name | Description |
| --- | --- |
| [`benchmark`](https://docs.luxonis.com/software-v3/ai-inference/conversion/rvc-conversion/offline/modelconverter/modelconverter-api-reference/platforms/rvc3/benchmark.md#benchmark-Classes-RVC3Benchmark-benchmark) | Run a single benchmark of the model on the device. |

#### property `all_configurations`

```python
all_configurations: list[Configuration]
```

The configurations used by the full benchmark.

Covers one to five concurrent inference requests.

#### property `default_configuration`

```python
default_configuration: Configuration
```

Default configuration for RVC3 benchmarking.

 * `Options:`: requests: The number of requests to perform.

#### method `benchmark`

```python
def benchmark(configuration: Configuration) -> Result
```

Run a single benchmark of the model on the device.

Args

| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `configuration` | `Configuration` | Configuration to benchmark with. The only supported option is `requests`, the number of concurrent inference requests. | required |

Returns

| Type | Description |
| --- | --- |
| `Result` | The measured throughput under `fps` and the median request latency under `latency`. |
