mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: report throughput in wal bench
This commit is contained in:
parent
89242d4659
commit
aed18395c9
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user