diff --git a/ulid_test.go b/ulid_test.go index 0d83310..e87568a 100644 --- a/ulid_test.go +++ b/ulid_test.go @@ -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()) }