使用chrome自带功能测试你的DNS

2013-10-08 10:31:23 +08:00
 inee
chrome://histograms/DNS.ResolveSuccess

"
How fast is your local DNS server? Chrome has the answer! Head to: chrome://histograms/DNS.ResolveSuccess.

The leftmost column is milliseconds, and the rightmost column shows the quantile.. In the screenshot below (based on my local server), ~50% of time the DNS resolution completes in 50ms. However, 90% percentile is at ~150ms! Yikes. DNS lookups are anything but free.
"

贴下我的数据

Stats as of last page load;reload to get stats as of this page load.

Histogram: DNS.ResolveSuccess recorded 383 samples, average = 188.4 (flags = 0x1)
0 ...
50 -O (1 = 0.3%) {0.0%}
58 ------------------------------------------------------------O (82 = 21.4%) {0.3%}
67 -------------------------------------O (51 = 13.3%) {21.7%}
77 ---------O (13 = 3.4%) {35.0%}
89 ----O (5 = 1.3%) {38.4%}
103 ------------------------------------------------------------------------O (99 = 25.8%) {39.7%}
119 ----------------------O (30 = 7.8%) {65.5%}
137 ----------------O (22 = 5.7%) {73.4%}
158 -------O (10 = 2.6%) {79.1%}
182 -------O (9 = 2.3%) {81.7%}
210 ------O (8 = 2.1%) {84.1%}
242 ----O (6 = 1.6%) {86.2%}
279 ----O (6 = 1.6%) {87.7%}
322 --------O (11 = 2.9%) {89.3%}
372 -O (2 = 0.5%) {92.2%}
429 ---O (4 = 1.0%) {92.7%}
495 --O (3 = 0.8%) {93.7%}
571 ---O (4 = 1.0%) {94.5%}
659 -O (1 = 0.3%) {95.6%}
761 -O (2 = 0.5%) {95.8%}
878 O (0 = 0.0%) {96.3%}
1013 -----O (7 = 1.8%) {96.3%}
1169 -O (1 = 0.3%) {98.2%}
1349 -O (1 = 0.3%) {98.4%}
1557 -O (1 = 0.3%) {98.7%}
1797 -O (1 = 0.3%) {99.0%}
2074 -O (2 = 0.5%) {99.2%}
2394 ...
3681 -O (1 = 0.3%) {99.7%}
4249 ...
4208 次点击
所在节点    Chrome
5 条回复
wzzyj8
2013-10-08 10:46:59 +08:00
Histogram: DNS.ResolveSuccess recorded 864 samples, average = 2.8 (flags = 0x1)
0 ------------------O (125 = 14.5%)
1 ------------------------------------------------------------------------O (507 = 58.7%) {14.5%}
2 ------------------O (130 = 15.0%) {73.1%}
3 ----O (29 = 3.4%) {88.2%}
4 --O (17 = 2.0%) {91.6%}
5 -O (7 = 0.8%) {93.5%}
6 -O (4 = 0.5%) {94.3%}
7 O (3 = 0.3%) {94.8%}
8 O (3 = 0.3%) {95.1%}
9 -O (6 = 0.7%) {95.5%}
10 O (6 = 0.7%) {96.2%}
12 O (2 = 0.2%) {96.9%}
14 O (1 = 0.1%) {97.1%}
16 O (4 = 0.5%) {97.2%}
18 O (3 = 0.3%) {97.7%}
21 O (3 = 0.3%) {98.0%}
24 O (3 = 0.3%) {98.4%}
28 O (2 = 0.2%) {98.7%}
32 O (2 = 0.2%) {99.0%}
37 O (4 = 0.5%) {99.2%}
43 O (1 = 0.1%) {99.7%}
50 ...
67 O (1 = 0.1%) {99.8%}
77 ...
495 O (1 = 0.1%) {99.9%}
571 ...
===========================================
光看查询时间的测试其实不是很靠谱。。
inee
2013-10-08 10:57:35 +08:00
@wzzyj8 你用的什么DNS?
wzzyj8
2013-10-08 12:02:05 +08:00
@inee 本机cache+6枚不同的DNS。
这个测试其实可信度不高的,实际使用当中我和你打开同个网页的速度其实根本没多大差别,因为你要想即便同一个DNS在不同时段响应速度都可能不一样的,cache什么的也都完全没考虑。在国内CDN地理位置匹配准确程度更重要
inee
2013-10-23 01:17:41 +08:00
@wzzyj8 6枚?不是只可以用2个么?  哪6枚啊?
wzzyj8
2013-10-31 09:50:32 +08:00
@inee 搜下dnsmasq或者win下的acrylic dns,当然是远远不止2个的,喜欢用10个都可以,有没有必要的问题。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/84826

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX