1
0

increase benchmark concurrency

This commit is contained in:
Arpad Ryszka 2026-02-23 00:27:11 +01:00
parent 21e75fcb0b
commit 49f465619d

View File

@ -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}