improve benchmark test

This commit is contained in:
Lucas Clemente
2016-09-05 00:41:21 +02:00
parent 313dd5b2fa
commit 934fc5b6a0

View File

@@ -125,7 +125,7 @@ var _ = Describe("Benchmarks", func() {
done := make(chan struct{})
go func() {
defer GinkgoRecover()
buf := make([]byte, 1024)
buf := make([]byte, 1500)
dataRead := 0
for dataRead < dataLen {
n, err := s2stream.Read(buf)
@@ -147,7 +147,7 @@ var _ = Describe("Benchmarks", func() {
time.Sleep(time.Millisecond)
b.RecordValue("transfer rate [MB/s]", float64(dataLen)/1e6/runtime.Seconds())
}, 3)
}, 6)
})
}
})