openvino/tests/time_tests
FanJiangIntel 51f8b681d7
Fix failure of pytest in timetest (#11647)
2022-05-09 08:48:33 +02:00
..
.automation Update models folder for TimeTests (#10107) 2022-02-04 11:33:15 +03:00
include/timetests_helper Support config option for time_tests suite (#11628) 2022-05-06 09:28:43 +02:00
scripts Support config option for time_tests suite (#11628) 2022-05-06 09:28:43 +02:00
src Support config option for time_tests suite (#11628) 2022-05-06 09:28:43 +02:00
test_runner Fix failure of pytest in timetest (#11647) 2022-05-09 08:48:33 +02:00
CMakeLists.txt Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
README.md fix work with query memory timeline (#8063) 2021-10-25 16:51:53 +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
  1. Install tests:
сmake install <build_dir> --prefix <install_path>
  1. Run test:
./scripts/run_timetest.py ../../bin/intel64/Release/timetest_infer -m model.xml -d CPU
  1. Run several configurations using pytest:
pytest ./test_runner/test_timetest.py --exe ../../bin/intel64/Release/timetest_infer

# For parse_stat testing:
pytest ./scripts/run_timetest.py