在进行benchmark测试时,我指定了-parallel 7参数,以为可以让7个核来运行,但通过top命令只发现1、2个核在运行,请问这是什么原因?
go test -bench=".*" -benchmem -benchtime 10s -parallel 7 -v
在进行benchmark测试时,我指定了-parallel 7参数,以为可以让7个核来运行,但通过top命令只发现1、2个核在运行,请问这是什么原因?
go test -bench=".*" -benchmem -benchtime 10s -parallel 7 -v