Skip to content

Commit

Permalink
fixup! Add local vs UTC Timestamp(Time) benchmark
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Bourgon <[email protected]>
  • Loading branch information
scop and peterbourgon authored Sep 13, 2023
1 parent a66f10a commit df7c380
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ulid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,8 @@ func BenchmarkTimestamp(b *testing.B) {
} {
tc := tc
b.Run(tc.name, func(b *testing.B) {
b.StopTimer()
b.ResetTimer()
b.SetBytes(8)
b.StartTimer()
b.ResetTimer()
for i := 0; i < b.N; i++ {
_ = ulid.Timestamp(tc.tsfunc())
}
Expand Down

0 comments on commit df7c380

Please sign in to comment.