Skip to content

Commit c8f440e

Browse files
committed
优化测试用例
1 parent 6c5f4e0 commit c8f440e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/utils/expires/list_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ func TestList_Map_Performance(t *testing.T) {
206206

207207
func BenchmarkList_Add(b *testing.B) {
208208
var list = expires.NewList()
209+
b.ResetTimer()
209210
b.RunParallel(func(pb *testing.PB) {
210211
for pb.Next() {
211212
list.Add(rand.Uint64(), fasttime.Now().Unix()+int64(rand.Int()%10_000_000))

0 commit comments

Comments
 (0)