Ask Your Question
0

Measuring performance of OpenCV functions

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

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
2

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

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 summary.py 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
0

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

Victor1234 gravatar image

You can use some profiler or getTickFrequency

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 824 times

Last updated: Feb 18 '13