Created
September 8, 2016 12:47
-
-
Save yudai09/578df16ff695d840fb0a5c9a6be86969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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