V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Get Google Chrome
Vimium · 在 Chrome 里使用 vim 快捷键
inee
V2EX  ›  Chrome

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

  •  
  •   inee · 2013-10-08 10:31:23 +08:00 · 4208 次点击
    这是一个创建于 4059 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 ...
    5 条回复    1970-01-01 08:00:00 +08:00
    wzzyj8
        1
    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
        2
    inee  
    OP
       2013-10-08 10:57:35 +08:00
    @wzzyj8 你用的什么DNS?
    wzzyj8
        3
    wzzyj8  
       2013-10-08 12:02:05 +08:00
    @inee 本机cache+6枚不同的DNS。
    这个测试其实可信度不高的,实际使用当中我和你打开同个网页的速度其实根本没多大差别,因为你要想即便同一个DNS在不同时段响应速度都可能不一样的,cache什么的也都完全没考虑。在国内CDN地理位置匹配准确程度更重要
    inee
        4
    inee  
    OP
       2013-10-23 01:17:41 +08:00
    @wzzyj8 6枚?不是只可以用2个么?  哪6枚啊?
    wzzyj8
        5
    wzzyj8  
       2013-10-31 09:50:32 +08:00
    @inee 搜下dnsmasq或者win下的acrylic dns,当然是远远不止2个的,喜欢用10个都可以,有没有必要的问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3139 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 13:35 · PVG 21:35 · LAX 05:35 · JFK 08:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.