Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ unit test for testing performance (synthetic benchmark)

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..

like image 695
uray Avatar asked Nov 04 '22 13:11

uray


1 Answers

I use gprof and valgrind for performance profiling. They certainly work on Linux and you can pretty much do all the things you mention.

like image 65
perreal Avatar answered Nov 09 '22 04:11

perreal