From 8f794be0c13bec7674efe17a6b31ac2b8b6b7c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 19 Mar 2024 21:08:00 +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/caches/list_file_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/caches/list_file_test.go b/internal/caches/list_file_test.go index f4d3c0a..209d22d 100644 --- a/internal/caches/list_file_test.go +++ b/internal/caches/list_file_test.go @@ -94,7 +94,9 @@ func TestFileList_Add_Many(t *testing.T) { } var before = time.Now() - for i := 0; i < 10_000_000; i++ { + const offset = 0 + const count = 1_000_000 + for i := offset; i < offset+count; i++ { u := "https://edge.teaos.cn/123456" + strconv.Itoa(i) _ = list.Add(stringutil.Md5(u), &caches.Item{ Key: u,