go test -bench Benchmark_calculateSqlComplexity -run =^$ -cpu 1,2,4,8
只对函数Benchmark_calculateSqlComplexity进行压力测试,写法如上所示。
go test -bench Benchmark_calculateSqlComplexity -run =^$ -cpu 1,2,4,8
只对函数Benchmark_calculateSqlComplexity进行压力测试,写法如上所示。
本文标题:golang只对单个函数进行benchmark测试
本文链接:https://www.haomeiwen.com/subject/yijacxtx.html
网友评论