openvino/samples/cpp/benchmark/throughput_benchmark
Maciej Smyk 8d49595476
[DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091)
* Update of links in docs to 2024 in repo.
* Replaced ov homepage diagram with a new version without Kalid, MXNet
and Caffe
2024-02-28 07:54:04 +00:00
..
CMakeLists.txt Moved cmake functions, variables to API 2.0 naming style (#20281) 2023-10-09 22:30:32 +04:00
README.md [DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091) 2024-02-28 07:54:04 +00:00
main.cpp Extend throughput benchmark with device CLI parameter (#20816) 2023-11-03 09:57:04 +01:00

README.md

Throughput Benchmark C++ Sample

This sample demonstrates how to estimate performance of a model using Asynchronous Inference Request API in throughput mode. Unlike 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 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

Requirements

Options Values
Validated Models alexnet,
googlenet-v1,
yolo-v3-tf,
face-detection-
Model Format OpenVINO™ toolkit Intermediate Representation
(*.xml + *.bin), ONNX (*.onnx)
Supported devices All
Other language realization Python

The following C++ API is used in the application:

Feature API Description
OpenVINO Runtime Version ov::get_openvino_version Get Openvino API version.
Basic Infer Flow ov::Core, ov::Core::compile_model, Common API to do inference: compile a model,
ov::CompiledModel::create_infer_request, create an infer request,
ov::InferRequest::get_tensor configure input tensors.
Asynchronous Infer ov::InferRequest::start_async, Do asynchronous inference with callback.
ov::InferRequest::set_callback
Model Operations ov::CompiledModel::inputs Get inputs of a model.
Tensor Operations ov::Tensor::get_shape, Get a tensor shape and its data.
ov::Tensor::data