Skip to content

Commit

Permalink
Merge pull request #550 from mreiferson/bench_panic_550
Browse files Browse the repository at this point in the history
nsqd: benchmark panics
  • Loading branch information
jehiah committed May 1, 2015
2 parents e417b83 + ed5ce72 commit a2a5938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsqd/protocol_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ func benchmarkProtocolV2Pub(b *testing.B, size int) {
opts.MemQueueSize = int64(b.N)
tcpAddr, _, nsqd := mustStartNSQD(opts)
msg := make([]byte, size)
batchSize := 200
batchSize := int(opts.MaxBodySize) / size
batch := make([][]byte, batchSize)
for i := range batch {
batch[i] = msg
Expand Down

0 comments on commit a2a5938

Please sign in to comment.