Skip to content

Instantly share code, notes, and snippets.

@gaplo917
Created April 1, 2018 17:17
Show Gist options
  • Save gaplo917/79fe58beabe7dba22f5013d12363318f to your computer and use it in GitHub Desktop.
Save gaplo917/79fe58beabe7dba22f5013d12363318f to your computer and use it in GitHub Desktop.
Time the dig test in MacOS
# gdate required to `brew install coreutils`
start=`gdate +%s%N`
for run in {1..10}
do
dig blog.gaplotech.com NS @$1 > /dev/null
done
end=$(gdate +%s%N)
diff=$((end-start))
echo "Total Query Time = $((diff/1000000)) ms";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment