LiuZe 73b6a436cb 添加protobuf3.17版本源码及opencv源码 | před 1 rokem | |
---|---|---|
.. | ||
perf_imgproc | před 1 rokem | |
README.md | před 1 rokem | |
base.js | před 1 rokem | |
package.json | před 1 rokem | |
perf_64bits.html | před 1 rokem | |
perf_64bits.js | před 1 rokem | |
perf_helpfunc.js | před 1 rokem |
node.js, npm: Make sure you have installed these beforehand with the system package manager.
Benchmark.js: Make sure you have installed Benchmark.js by npm before use. Please run npm install
in the directory <build_dir>/bin/perf
.
For example, if you want to test the performance of cvtColor, please run perf_cvtcolor.js
by node in terminal:
node perf_cvtcolor.js
All tests of cvtColor will be run by above command.
If you just want to run one specific case, please use --test_param_filter="()"
flag, like:
node perf_cvtcolor.js --test_param_filter="(1920x1080, COLOR_BGR2GRAY)"
To run performance tests, please launch a local web server in /bin folder. For example, node http-server which serves on localhost:8080.
Navigate the web browser to the kernel page you want to test, like http://localhost:8080/perf/imgproc/cvtcolor.html.
You can input the parameter, and then click the Run
button to run the specific case, or it will run all the cases.