# Throughput Benchmark Python Sample

This sample demonstrates how to estimate performance of a model using Asynchronous Inference Request API in throughput mode. Unlike [demos](https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos) this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.

The reported results may deviate from what [benchmark_app](https://docs.openvino.ai/2025/get-started/learn-openvino/openvino-samples/benchmark-tool.html) reports. One example is model input precision for computer vision tasks. benchmark_app sets uint8, while the sample uses default model precision which is usually float32.

For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2025/get-started/learn-openvino/openvino-samples/sync-benchmark.html)

## Requirements

| Options                        | Values                                                                                                                 |
| -------------------------------| -----------------------------------------------------------------------------------------------------------------------|
| Validated Models               | [yolo-v3-tf](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/public/yolo-v3-tf)                   |
|                                | [face-detection-0200](https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/intel/face-detection-0200)  |
| Model Format                   | OpenVINO™ toolkit Intermediate Representation                                                                          |
|                                | (\*.xml + \*.bin), ONNX (\*.onnx)                                                                                      |
| Supported devices              | [All](https://docs.openvino.ai/2025/documentation/compatibility-and-support/supported-devices.html)                    |
| Other language realization     | [C++](https://docs.openvino.ai/2025/get-started/learn-openvino/openvino-samples/sync-benchmark.html)                               |

The following Python API is used in the application:

| Feature                   | API                                             | Description                                  |
| --------------------------| ------------------------------------------------|----------------------------------------------|
| OpenVINO API Version      | [openvino.\_\_version__]                          | Get Openvino API version.                    |
| Basic Infer Flow          | [openvino.Core],                        | Common API to do inference: compile a model, |
|                           | [openvino.Core.compile_model]           | configure input tensors.                     |
|                           | [openvino.InferRequest.get_tensor]      |                                              |
| Asynchronous Infer        | [openvino.AsyncInferQueue],             | Do asynchronous inference.                   |
|                           | [openvino.AsyncInferQueue.start_async], |                                              |
|                           | [openvino.AsyncInferQueue.wait_all],    |                                              |
|                           | [openvino.InferRequest.results]         |                                              |
| Model Operations          | [openvino.CompiledModel.inputs]         | Get inputs of a model.                       |
| Tensor Operations         | [openvino.Tensor.get_shape],            | Get a tensor shape and its data.             |
|                           | [openvino.Tensor.data]                  |                                              |

