You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nsbench: a tool I cobbled together to load test/benchmark DNS servers
Also a great way to learn thread-based concurrency in rust!
I don't really guarantee anything about this software. It can generate a lot of load, though! I built it to help me evaluate performance issues with zeronsd.
nsbench will allocate N threads (where N defaults to the number of CPUs) to repeatedly hammer your DNS server for a fixed period of time (default 60 seconds). It will periodically report on a number of things, like latency. Once finished, it will offer a detailed report of the run status.
cargo install --git https://github.com/erikh/nsbench --branch main
Usage:
nsbench <nameserver ip> <host>
There are other flags. Use --help to access them. As of this writing, that looks like this:
Usage: nsbench <nameserver> <host> [-t <time-secs>] [-l <cpus>] [--timeout <timeout>]
Nameserver benchmarking/flooding tool
Options:
-t, --time-secs time in seconds to run the test
-l, --cpus limit the number of CPUs (default off)
--timeout duration to wait (in ns) before considering a request failed
--help display usage information