increase benchmark concurrency
This commit is contained in:
parent
21e75fcb0b
commit
49f465619d
@ -248,7 +248,7 @@ func BenchmarkCompare(b *testing.B) {
|
|||||||
|
|
||||||
func BenchmarkThroughputP(b *testing.B) {
|
func BenchmarkThroughputP(b *testing.B) {
|
||||||
p := buffer.DefaultPool(0)
|
p := buffer.DefaultPool(0)
|
||||||
b.SetParallelism(runtime.GOMAXPROCS(-1))
|
b.SetParallelism(runtime.GOMAXPROCS(-1) * 64)
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
dst := bytes.NewBuffer(nil)
|
dst := bytes.NewBuffer(nil)
|
||||||
wo := writerOnly{dst}
|
wo := writerOnly{dst}
|
||||||
@ -263,7 +263,7 @@ func BenchmarkThroughputP(b *testing.B) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCompareP(b *testing.B) {
|
func BenchmarkCompareP(b *testing.B) {
|
||||||
b.SetParallelism(runtime.GOMAXPROCS(-1))
|
b.SetParallelism(runtime.GOMAXPROCS(-1) * 64)
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
dst := bytes.NewBuffer(nil)
|
dst := bytes.NewBuffer(nil)
|
||||||
wo := writerOnly{dst}
|
wo := writerOnly{dst}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user