is there any library just like unit testing library, but instead of testing for correctness, its testing the performance of such functions, the output is execution time, cpu instruction count, performance variance, cache-miss, etc..
Asked
Active
Viewed 982 times
5
-
3This former SO question might be of help : http://stackoverflow.com/questions/4606306/performance-testing-utilities-for-c – Barth Sep 26 '11 at 10:27
1 Answers
2
I use gprof and valgrind for performance profiling. They certainly work on Linux and you can pretty much do all the things you mention.

perreal
- 94,503
- 21
- 155
- 181
-
1I doubt that is enough. Have you used CPPUNIT? I expect he wants a framework in which he can say set up a suite of test-cases, each of which says *this* operation must take no more than *this* amount of time. – Raedwald Sep 27 '11 at 12:15