bench程序: 增加单个IP段,检查5个IP,与其它语言保持一致

This commit is contained in:
Wu Jian Ping 2022-07-22 13:57:31 +08:00
parent f6bf9baf1e
commit 609e7749ee
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ options:
src: ../../data/ip2region.xdb
cache-policy: content
Bench finished, {cachePolicy: content, total: 683591, took: 5.018973507s, cost: 0.007342070780627597μs/op}
Bench finished, {cachePolicy: content, total: 3417955, took: 19.587147156s, cost: 0.005730662678707005μs/op}
```
可以通过分别设置 `cache-policy` 为 file/vectorIndex/content 来测试三种不同缓存实现的效果。