Skip to content

Commit

Permalink
errorz
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Aug 7, 2015
1 parent cea5995 commit ef3662e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nsqd/diskqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,17 @@ func benchmarkDiskQueuePut(size int64, b *testing.B) {
panic(err)
}
defer os.RemoveAll(tmpDir)
dq := newDiskQueue(dqName, tmpDir, 1024768*100, 0, 1<<10, 2500, 2*time.Second, l)
dq := newDiskQueue(dqName, tmpDir, 1024768*100, 0, 1<<20, 2500, 2*time.Second, l)
defer dq.Close()
b.SetBytes(size)
data := make([]byte, size)
b.StartTimer()

for i := 0; i < b.N; i++ {
dq.Put(data)
err := dq.Put(data)
if err != nil {
panic(err)
}
}
}

Expand Down

0 comments on commit ef3662e

Please sign in to comment.