From c8f440e24c5ae3d8e317a9c301cc1605fc89446d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 21 Apr 2024 19:04:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/expires/list_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/utils/expires/list_test.go b/internal/utils/expires/list_test.go index 6ce8755..8562c17 100644 --- a/internal/utils/expires/list_test.go +++ b/internal/utils/expires/list_test.go @@ -206,6 +206,7 @@ func TestList_Map_Performance(t *testing.T) { func BenchmarkList_Add(b *testing.B) { var list = expires.NewList() + b.ResetTimer() b.RunParallel(func(pb *testing.PB) { for pb.Next() { list.Add(rand.Uint64(), fasttime.Now().Unix()+int64(rand.Int()%10_000_000))