From df7c38060269a1c7ae12e4fafe3b75e65c4597fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 13 Sep 2023 06:56:21 +0300 Subject: [PATCH] fixup! Add local vs UTC `Timestamp(Time)` benchmark Co-authored-by: Peter Bourgon --- ulid_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()) }