Skip to content

Commit 87376bc

Browse files
Merge pull request #439 from nshipilov/nsh/make-concurrency-more-fair
Make concurrency parameter more fair between transports
2 parents d4956d8 + d26470f commit 87376bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ func runBenchmark(out output, logger *zap.Logger, allOpts Options, resolved reso
229229

230230
logger.Info("Benchmark starting.", zap.Any("options", opts))
231231
start := time.Now()
232-
for i, c := range connections {
233-
for j := 0; j < opts.Concurrency; j++ {
232+
for j := 0; j < opts.Concurrency; j++ {
233+
for i, c := range connections {
234234
state := states[i*opts.Concurrency+j]
235235

236236
wg.Add(1)

0 commit comments

Comments
 (0)