# ip地址归属地查询
http://127.0.0.1:8080?address=git.sre.ink
## build arm64 on oracle k8s
```bash
cd /root
rm -rf IPRegion
git clone https://git.sre.ink/go/IPRegion.git
cd IPRegion
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on  go build -v -a -o ipregion.bin main.go
docker build -t sre/ipregion:arm64 .
kubectl rollout restart deployment -n sre ginbase
```



## bench
```bash
goos: windows
goarch: amd64
pkg: IPRegion/ip2region
cpu: AMD Ryzen 9 5900HX with Radeon Graphics
BenchmarkBtreeSearch
BenchmarkBtreeSearch-16           215227              5310 ns/op
BenchmarkMemorySearch
BenchmarkMemorySearch-16         5435004               220.3 ns/op
BenchmarkBinarySearch
BenchmarkBinarySearch-16           34378             34766 ns/op
PASS
```


