mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-10 20:50:25 +08:00
优化测试用例
This commit is contained in:
@@ -94,7 +94,9 @@ func TestFileList_Add_Many(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var before = time.Now()
|
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)
|
u := "https://edge.teaos.cn/123456" + strconv.Itoa(i)
|
||||||
_ = list.Add(stringutil.Md5(u), &caches.Item{
|
_ = list.Add(stringutil.Md5(u), &caches.Item{
|
||||||
Key: u,
|
Key: u,
|
||||||
|
|||||||
Reference in New Issue
Block a user