Create a gist now

Instantly share code, notes, and snippets.

THREADS=300
ULIMITS=4096
DOMAIN=your.domain
function dig(){
for i in $(seq $THREADS); do
dig @localhost $DOMAIN &
done
wait
echo 'done'
}
echo "THREADS=$THREADS, ULIMITS=$ULIMITS"
ulimit -u $ULIMITS
time dig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment