开发者

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

开发者 https://www.devze.com 2023-04-08 06:14 出处:网络
is there any library 开发者_如何学JAVAjust like unit testing library, but instead of testing for correctness, its testing the performance of such functions, the output is execution time, cpu instructi

is there any library 开发者_如何学JAVAjust 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..


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

0

精彩评论

暂无评论...
验证码 换一张
取 消