opencv/modules/js/perf
Kun Liang c82417697a
Merge pull request #18068 from lionkunonly:gsoc_2020_simd
[GSoC] OpenCV.js: WASM SIMD optimization 2.0

* gsoc_2020_simd Add perf test for filter2d

* add perf test for kernel scharr and kernel gaussianBlur

* add perf test for blur, medianBlur, erode, dilate

* fix the errors for the opencv PR robot

fix the trailing whitespace.

* add perf tests for kernel remap, warpAffine, warpPersepective, pyrDown

* fix a bug in  modules/js/perf/perf_imgproc/perf_remap.js

* add function smoothBorder in helpfun.js and remove replicated function in perf test of warpAffine and warpPrespective

* fix the trailing white space issues

* add OpenCV.js loader

* Implement the Loader with help of WebAssembly Feature Detection, remove trailing whitespaces

* modify the explantion for loader in js_setup.markdown and fix bug in loader.js
2020-10-18 20:30:36 +00:00
..
perf_imgproc Merge pull request #18068 from lionkunonly:gsoc_2020_simd 2020-10-18 20:30:36 +00:00
base.js Merge pull request #18068 from lionkunonly:gsoc_2020_simd 2020-10-18 20:30:36 +00:00
package.json Merge pull request #15371 from Wenzhao-Xiang:gsoc_2019 2019-09-24 16:30:42 +03:00
perf_64bits.html Merge pull request #18068 from lionkunonly:gsoc_2020_simd 2020-10-18 20:30:36 +00:00
perf_64bits.js Merge pull request #18068 from lionkunonly:gsoc_2020_simd 2020-10-18 20:30:36 +00:00
perf_helpfunc.js Merge pull request #18068 from lionkunonly:gsoc_2020_simd 2020-10-18 20:30:36 +00:00
README.md Fix spelling typos 2019-12-27 12:46:53 +00:00

OpenCV.js Performance Test

Node.js Version

Prerequisites

  1. node.js, npm: Make sure you have installed these beforehand with the system package manager.

  2. Benchmark.js: Make sure you have installed Benchmark.js by npm before use. Please run npm install in the directory <build_dir>/bin/perf.

How to Use

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)"

Browser Version

How to Use

To run performance tests, please launch a local web server in <build_dir>/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.