From b8f24946241f48903e52e3389f6f7537bc08bf86 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 7 Aug 2015 09:27:49 +0200 Subject: [PATCH] update invocation syntax also, make the statement less strong. runs fine by default on my system with SSD. --- nsqd/diskqueue_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nsqd/diskqueue_test.go b/nsqd/diskqueue_test.go index ac65db3a1..3fb1e44ed 100644 --- a/nsqd/diskqueue_test.go +++ b/nsqd/diskqueue_test.go @@ -332,9 +332,9 @@ func BenchmarkDiskWriteBuffered(b *testing.B) { f.Sync() } -// this benchmark should be run via: -// $ go test -test.bench 'DiskQueueGet' -test.benchtime 0.1 -// (so that it does not perform too many iterations) +// you might want to run this like +// $ go test -bench=DiskQueueGet -benchtime 0.1s +// too avoid doing too many iterations. func BenchmarkDiskQueueGet(b *testing.B) { b.StopTimer() l := newTestLogger(b)