Ask Your Question

Measuring performance of OpenCV functions

asked 2013-02-17 00:29:52 -0500

Abid Rahman K gravatar image

Suppose I have written an optimized code for a function in OpenCV (say some SSE optimized code), how can I measure performance comparison between OpenCV function and my implementation? Can anyone show an example?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-02-18 01:55:08 -0500

The best way is to implement performance tests for your functions or use ready tests for them, of they have been already exists. The you can execute different builds with/without your optimizations, grab resulting xml files and compare them using script from modules/ts/misc folder of OpenCV source code.

OpenCV is open source project and you can contribute your optimizations and tests. The best way for contribution is pull request via Github.

edit flag offensive delete link more

answered 2013-02-17 03:48:35 -0500

Victor1234 gravatar image

You can use some profiler or getTickFrequency

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-02-17 00:29:52 -0500

Seen: 585 times

Last updated: Feb 18 '13