Skip to content

Commit

Permalink
Stable benchmark result of BenchmarkValueEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
XSAM committed Aug 16, 2024
1 parent c609b12 commit abe9018
Show file tree
Hide file tree
Showing 3 changed files with 19,894 additions and 1 deletion.
4 changes: 3 additions & 1 deletion log/keyvalue_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ func BenchmarkValueEqual(b *testing.B) {
for _, v2 := range vals {
b.Run(v1.String()+" with "+v2.String(), func(b *testing.B) {
b.ReportAllocs()
_ = v1.Equal(v2)
for i := 0; i < b.N; i++ {
_ = v1.Equal(v2)
}
})
}
}
Expand Down
Loading

0 comments on commit abe9018

Please sign in to comment.