Skip to content

Instantly share code, notes, and snippets.

@takuma-saito
Last active August 10, 2016 13:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuma-saito/fdc265aa10dc6e1e2205 to your computer and use it in GitHub Desktop.
Save takuma-saito/fdc265aa10dc6e1e2205 to your computer and use it in GitHub Desktop.
benchmark of google public cache DNS server
curl 'http://s3.amazonaws.com/alexa-static/top-1m.csv.zip' | zcat -d | awk -F',' '{print $2}' | paste -d' ' - <(yes A | head -n 200000) > queries-200000.txt
dnsperf -d queries-10000.txt -s 8.8.8.8 -p 53 -c 128 -t 10 -q 1000 -Q 1500 -S 1 2>&1 | grep -v -E 'Timeout|Warning'
dnsperf -d queries-200000.tx -s 127.0.0.1 -p 53 -c 120000 -t 10 -q 20000 -Q 20000 -S 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment