Skip to content

Commit 4225cd6

Browse files
committed
fix benchmarks
1 parent 68376b1 commit 4225cd6

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

internal/balancer/state/state_test.go

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,27 @@ func BenchmarkNext4(b *testing.B) {
276276
}
277277

278278
func BenchmarkNext16(b *testing.B) {
279-
benchmarkNextParallel(b, 4)
279+
benchmarkNextParallel(b, 16)
280280
}
281281

282282
func BenchmarkNext32(b *testing.B) {
283-
benchmarkNextParallel(b, 4)
283+
benchmarkNextParallel(b, 32)
284284
}
285285

286286
func BenchmarkNext64(b *testing.B) {
287-
benchmarkNextParallel(b, 4)
287+
benchmarkNextParallel(b, 64)
288+
}
289+
290+
func BenchmarkNext128(b *testing.B) {
291+
benchmarkNextParallel(b, 128)
292+
}
293+
294+
func BenchmarkNext256(b *testing.B) {
295+
benchmarkNextParallel(b, 256)
296+
}
297+
298+
func BenchmarkNext512(b *testing.B) {
299+
benchmarkNextParallel(b, 512)
288300
}
289301

290302
func benchmarkNextParallel(b *testing.B, parallelism int) {

0 commit comments

Comments
 (0)