openvino/tests/time_tests
Andrey Somsikov 359c2ca018
Upgrade pyyaml to the latest (#4134)
2021-02-03 07:07:01 +03:00
..
include/timetests_helper Extend timetest_infer pipeline with infer track and blob's support (#2298) 2020-09-21 02:09:41 +03:00
scripts Upgrade pyyaml to the latest (#4134) 2021-02-03 07:07:01 +03:00
src Fix windows build for gflags for time_tests (#3504) 2020-12-11 09:25:14 +03:00
test_runner Upgrade pyyaml to the latest (#4134) 2021-02-03 07:07:01 +03:00
CMakeLists.txt Enabled CMP0025 as NEW (#3791) 2021-01-11 14:48:27 +03:00
README.md Build time_tests with OpenVINO install (#3484) 2020-12-07 12:56:37 +03:00

README.md

Time Tests

This test suite contains pipelines, which are executables. The pipelines measure the time of their execution, both total and partial. A Python runner calls the pipelines and calcuates the average execution time.

Prerequisites

To build the time tests, you need to have OpenVINO™ installed or build from source.

Measure Time

To build and run the tests, open a terminal, set OpenVINO™ environment and run the commands below:

  1. Build tests:
mkdir build && cd build
cmake .. && make time_tests

If you don't have OpenVINO™ installed you need to have the build folder, which is created when you configure and build OpenVINO™ from sources:

cmake .. -DInferenceEngineDeveloperPackage_DIR=$(realpath ../../../build) && make time_tests
  1. Run test:
./scripts/run_timetest.py ../../bin/intel64/Release/timetest_infer -m model.xml -d CPU
  1. Run several configurations using pytest:
export PYTHONPATH=./:$PYTHONPATH
pytest ./test_runner/test_timetest.py --exe ../../bin/intel64/Release/timetest_infer