我正在寻找一些工具或Go测试包来在不同的服务器上运行一些基准测试.知道如何在我的控制台中获得一些很好的分析输出.是否可以模拟访问服务器的多个用户?
从这个测试代码中得不到输出
package tests
import(
"testing"
)
func BenchmarkMyFunc(b *testing.B) {
for i := 0; i < b.N; i++ {
testplus()
}
}
func testplus() int {
x := 1
return x + 1
}
Run Code Online (Sandbox Code Playgroud)
谢谢