openvino/tests/time_tests
Mircea-Aurelian Dan 5397e299fd
[EISW-81712] Rename `VPUX` to `VPU` in openvino codebase (#17949)
* Change `VPUX` occurrences to `VPU`

* Switch `VPU` library name

* Change remaining references to `VPUX`
2023-07-19 15:55:24 +04:00
..
.automation Validation: Test AUTO plugin timetests (#17508) 2023-05-31 15:38:57 +02:00
include/timetests_helper Xuejun/remove api in ov any (#15667) 2023-03-06 10:24:08 +04:00
scripts Validation: Test AUTO plugin timetests (#17508) 2023-05-31 15:38:57 +02:00
src Validation: Test AUTO plugin timetests (#17508) 2023-05-31 15:38:57 +02:00
test_runner [EISW-81712] Rename `VPUX` to `VPU` in openvino codebase (#17949) 2023-07-19 15:55:24 +04:00
CMakeLists.txt Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00
README.md Fixed documentation for tests (#13246) 2022-09-28 23:36:21 +04: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 .. && cmake --build . --target time_tests -j8
  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