Merge pull request #2663 from xiang90/wal_b

wal: report throughput in wal bench
This commit is contained in:
Xiang Li
2015-04-15 09:32:17 -07:00

View File

@@ -53,6 +53,7 @@ func benchmarkWriteEntry(b *testing.B, size int, batch int) {
b.ResetTimer()
n := 0
b.SetBytes(int64(e.Size()))
for i := 0; i < b.N; i++ {
err := w.saveEntry(e)
if err != nil {