Skip to content

Google Public DNS 国内访问的性能

dnsperf 简单测试了一下 Google Public DNS 中 8.8.8.8 的响应时间
发送 22422 个请求,完成率 97.81%,平均延迟 0.54s,47%在0.2s内成功返回,平均每秒查询30个左右。
测试样本用的是 dnsperf 自带的一套国际域名查询记录,并发最多同时20个查询请求。回头有空再做个针对国内域名的对比测试。
$ ./dnsperf -p 53  -s 8.8.8.8 -d queryfile-example-3million -H 50 -T 10
Statistics:
  Parse input file:     once
  Ended due to:         interruption
  Queries sent:         22422 queries
  Queries completed:    21910 queries
  Queries lost:         492 queries
  Queries interrupted:  20 queries
  Avg request size:     40 bytes
  Avg response size:    80 bytes
  Percentage completed:  97.81%
  Percentage lost:        2.19%
  Started at:           Sun Dec  6 15:07:54 2009
  Finished at:          Sun Dec  6 15:19:58 2009
  Ran for:              724.357586 seconds
  Queries per second:   30.247492 qps
Latency: Min: 0.044573 s; Max: 5.036942 s; Avg: 0.546176 s; StdDev: 0.739284
Response latency distribution (total 21910 responses):
Latency   Success  Fail |
<    0.200s 10352   320 |##########################################################-
<    0.400s  1851   569 |##########—
<    0.600s  2012  1083 |###########——
<    0.800s  1058   759 |#####—-
<    1.000s   257   540 |#—
<    1.200s   142   320 |-
<    1.400s    68   163 |
<    1.600s    40    95 |
<    1.800s    33   503 |–
<    2.000s    61   526 |–
<    2.200s    29   171 |
<    2.400s    20   160 |
<    2.600s    11    65 |
<    2.800s    10    58 |
<    3.000s     1    53 |
<    3.200s     1   239 |-
<    3.400s     8    56 |
<    3.600s     2    69 |
<    3.800s     0    37 |
<    4.000s     5    28 |
<    4.200s     3    17 |
<    4.400s     3    11 |
<    4.600s     0    11 |
<    4.800s     2    63 |
<    5.000s     2    16 |
<    5.200s     0     7 |
<    5.400s     0     0 |
<    5.600s     0     0 |
<    5.800s     0     0 |
<    6.000s     0     0 |
<    6.200s     0     0 |
<    6.400s     0     0 |
<    6.600s     0     0 |
<    6.800s     0     0 |
<    7.000s     0     0 |
<    7.200s     0     0 |
<    7.400s     0     0 |
<    7.600s     0     0 |
<    7.800s     0     0 |
<    8.000s     0     0 |
<    8.200s     0     0 |
<    8.400s     0     0 |
<    8.600s     0     0 |
<    8.800s     0     0 |
<    9.000s     0     0 |
<    9.200s     0     0 |
<    9.400s     0     0 |
<    9.600s     0     0 |
<    9.800s     0     0 |
<   10.000s     0     0 |
>=  10.000s     0     0 |
Legend:
##### = success responses (RCODE was NOERROR or NXDOMAIN)
—– = failure responses (any other RCODE)

Post a Comment

Your email is never published nor shared. Required fields are marked *

Get Adobe Flash player