Skip to content

Commit 5535077

Browse files
committed
xz: add compression reate to Writer benchmark
1 parent 886dc9a commit 5535077

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

writer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,5 @@ func BenchmarkWriter(b *testing.B) {
199199
b.Fatalf("w.Write(data)")
200200
}
201201
}
202+
b.ReportMetric(float64(buf.Len())/float64(len(data)), "rate")
202203
}

0 commit comments

Comments
 (0)