renew benchmark
This commit is contained in:
parent
9ddf8a8939
commit
3d88269c95
|
@ -79,16 +79,19 @@ maxcount = 100000
|
|||
|
||||
## Benchmak
|
||||
|
||||
|
||||
__Debug close__
|
||||
|
||||
```
|
||||
$ go test -bench=.
|
||||
|
||||
testing: warning: no tests to run
|
||||
PASS
|
||||
BenchmarkDig-4 5000 435141 ns/op
|
||||
ok _/Users/kenshin/workspace/godns 2.270s
|
||||
BenchmarkDig-4 10000 202732 ns/op
|
||||
ok _/Users/kenshin/workspace/gogo/godns 2.489s
|
||||
```
|
||||
|
||||
The result : 2200 queries/per second
|
||||
The result : 4032 queries/per second
|
||||
|
||||
The enviroment of test:
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Title = "GODNS"
|
|||
Version = "0.1.1"
|
||||
Author = "kenshin"
|
||||
|
||||
Debug = true
|
||||
Debug = false
|
||||
|
||||
[server]
|
||||
host = "127.0.0.1"
|
||||
|
@ -16,7 +16,7 @@ resolv-file = "/etc/resolv.conf"
|
|||
timeout = 5 # 5 seconds
|
||||
|
||||
[redis]
|
||||
host = "kenshinx.me"
|
||||
host = "127.0.0.1"
|
||||
port = 6379
|
||||
db = 0
|
||||
password =""
|
||||
|
@ -35,7 +35,7 @@ maxcount = 100000
|
|||
|
||||
[hosts]
|
||||
#If set false, will not query hosts file and redis hosts record
|
||||
enable = true
|
||||
enable = false
|
||||
host-file = "/etc/hosts"
|
||||
redis-key = "godns:hosts"
|
||||
ttl = 600
|
||||
|
|
Loading…
Reference in New Issue