mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-03 15:00:24 +08:00
优化本地数据库性能
This commit is contained in:
16
internal/utils/fnv/hash_test.go
Normal file
16
internal/utils/fnv/hash_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package fnv_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeNode/internal/utils/fnv"
|
||||
"github.com/iwind/TeaGo/types"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestHash(t *testing.T) {
|
||||
for _, key := range []string{"costarring", "liquid", "hello"} {
|
||||
var h = fnv.Hash(key)
|
||||
t.Log(key + " => " + types.String(h))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user