Set bytes in ReferenceFile benchmark to show throughput results (#489)

This commit is contained in:
Cameron Moore
2021-03-30 11:34:25 -05:00
committed by GitHub
parent cf288a51c5
commit e5255a5be2
+1
View File
@@ -157,6 +157,7 @@ func BenchmarkReferenceFile(b *testing.B) {
if err != nil { if err != nil {
b.Fatal(err) b.Fatal(err)
} }
b.SetBytes(int64(len(bytes)))
b.ReportAllocs() b.ReportAllocs()
b.ResetTimer() b.ResetTimer()
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {