1 1.1 christos The following is a demonstration of the weblatency.d script. 2 1.1 christos 3 1.1 christos Here we run weblatency.d while a mozilla browser loads the 4 1.1 christos http://www.planetsolaris.org website. After the website was loaded, Ctrl-C 5 1.1 christos was hit to print the following report, 6 1.1 christos 7 1.1 christos # weblatency.d 8 1.1 christos Tracing... Hit Ctrl-C to end. 9 1.1 christos ^C 10 1.1 christos HOST NUM 11 1.1 christos static.flickr.com 1 12 1.1 christos images.pegasosppc.com 1 13 1.1 christos www.planetsolaris.org 5 14 1.1 christos blogs.sun.com 7 15 1.1 christos 16 1.1 christos HOST AVGTIME(ms) 17 1.1 christos static.flickr.com 65 18 1.1 christos blogs.sun.com 285 19 1.1 christos images.pegasosppc.com 491 20 1.1 christos www.planetsolaris.org 757 21 1.1 christos 22 1.1 christos HOST MAXTIME(ms) 23 1.1 christos static.flickr.com 65 24 1.1 christos images.pegasosppc.com 491 25 1.1 christos blogs.sun.com 962 26 1.1 christos www.planetsolaris.org 3689 27 1.1 christos 28 1.1 christos This gives us an understanding on which hosts were responsible for the 29 1.1 christos time endured while loading the website. It turns out that requests to 30 1.1 christos www.planetsolaris.org were the slowest, with a maximum time of 3.7 seconds 31 1.1 christos (probably the first request, which incurred a DNS lookup). 32 1.1 christos 33 1.1 christos 34 1.1 christos 35 1.1 christos The following shows the same google lookup performed on a number of sites, 36 1.1 christos 37 1.1 christos # weblatency.d 38 1.1 christos Tracing... Hit Ctrl-C to end. 39 1.1 christos ^C 40 1.1 christos HOST NUM 41 1.1 christos www.google.com.au 3 42 1.1 christos www.google.co.uk 3 43 1.1 christos www.google.com 3 44 1.1 christos www.google.co.nz 3 45 1.1 christos 46 1.1 christos HOST AVGTIME(ms) 47 1.1 christos www.google.co.nz 450 48 1.1 christos www.google.com.au 502 49 1.1 christos www.google.com 567 50 1.1 christos www.google.co.uk 595 51 1.1 christos 52 1.1 christos HOST MAXTIME(ms) 53 1.1 christos www.google.co.nz 544 54 1.1 christos www.google.com.au 559 55 1.1 christos www.google.com 744 56 1.1 christos www.google.co.uk 763 57 1.1 christos 58 1.1 christos From the average time you would guess that I was running this from 59 1.1 christos New Zealand (the fastest), with times to the other hosts following suit 60 1.1 christos (Australia, USA, UK). I was actually running this from Australia - it's 61 1.1 christos interesting that the New Zealand server responded slightly faster. 62 1.1 christos 63 1.1 christos 64 1.1 christos 65 1.1 christos 66 1.1 christos Now several websites are loaded as a larger demonstration, 67 1.1 christos 68 1.1 christos # weblatency.d 69 1.1 christos Tracing... Hit Ctrl-C to end. 70 1.1 christos ^C 71 1.1 christos HOST NUM 72 1.1 christos shop.abc.net.au 1 73 1.1 christos static.technorati.com 1 74 1.1 christos sunopensolaris.112.2o7.net 1 75 1.1 christos www.theage.com.au 1 76 1.1 christos ffxcam.smh.com.au 1 77 1.1 christos sunglobal.112.2o7.net 2 78 1.1 christos embed.technorati.com 2 79 1.1 christos technorati.com 2 80 1.1 christos fdimages.fairfax.com.au 4 81 1.1 christos blogs.sun.com 5 82 1.1 christos bugs.opensolaris.org 7 83 1.1 christos www.abc.net.au 34 84 1.1 christos www.smh.com.au 51 85 1.1 christos 86 1.1 christos HOST AVGTIME(ms) 87 1.1 christos ffxcam.smh.com.au 0 88 1.1 christos sunglobal.112.2o7.net 0 89 1.1 christos www.abc.net.au 56 90 1.1 christos www.theage.com.au 64 91 1.1 christos shop.abc.net.au 65 92 1.1 christos www.smh.com.au 73 93 1.1 christos fdimages.fairfax.com.au 88 94 1.1 christos blogs.sun.com 130 95 1.1 christos bugs.opensolaris.org 162 96 1.1 christos static.technorati.com 350 97 1.1 christos technorati.com 352 98 1.1 christos embed.technorati.com 632 99 1.1 christos sunopensolaris.112.2o7.net 900 100 1.1 christos 101 1.1 christos HOST MAXTIME(ms) 102 1.1 christos ffxcam.smh.com.au 0 103 1.1 christos sunglobal.112.2o7.net 0 104 1.1 christos www.theage.com.au 64 105 1.1 christos shop.abc.net.au 65 106 1.1 christos fdimages.fairfax.com.au 243 107 1.1 christos www.smh.com.au 244 108 1.1 christos blogs.sun.com 293 109 1.1 christos www.abc.net.au 315 110 1.1 christos static.technorati.com 350 111 1.1 christos technorati.com 356 112 1.1 christos bugs.opensolaris.org 560 113 1.1 christos sunopensolaris.112.2o7.net 900 114 1.1 christos embed.technorati.com 973 115 1.1 christos 116 1.1 christos It's interesting that the most common host (www.smh.com.au, NUM == 51), 117 1.1 christos responded with a fast AVGTIME (73 ms). The reason for this may be due to 118 1.1 christos cacheing by my proxy server. Less common hosts such as embed.technorati.com 119 1.1 christos were quite slow. 120 1.1 christos 121 1.1 christos 122 1.1 christos 123 1.1 christos The results from weblatency.d are interesting, but they don't point the 124 1.1 christos finger at one single cause for website latency. The value here is the response 125 1.1 christos time experienced by the client - which is a combination of many response 126 1.1 christos times (link speeds, proxy server, DNS server, web server). 127 1.1 christos 128