{"id":15902832,"url":"https://github.com/erikh/nsbench","last_synced_at":"2025-04-02T20:14:08.241Z","repository":{"id":145967239,"uuid":"374511481","full_name":"erikh/nsbench","owner":"erikh","description":"DNS load tester / benchmarker","archived":false,"fork":false,"pushed_at":"2023-05-15T17:06:30.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T10:42:37.161Z","etag":null,"topics":["benchmarking","dns","load-testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erikh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-07T02:26:06.000Z","updated_at":"2023-05-15T05:12:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f435ff6a-fed2-40c7-a93c-93e97f3b39c4","html_url":"https://github.com/erikh/nsbench","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"3965f1b803ad5c2e4f068aa5d26e299b4a1ed59e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fnsbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fnsbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fnsbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fnsbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikh","download_url":"https://codeload.github.com/erikh/nsbench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246884767,"owners_count":20849554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmarking","dns","load-testing"],"created_at":"2024-10-06T12:00:21.891Z","updated_at":"2025-04-02T20:14:08.210Z","avatar_url":"https://github.com/erikh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nsbench: a tool I cobbled together to load test/benchmark DNS servers\n\nAlso a great way to learn thread-based concurrency in rust!\n\nI 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](https://github.com/zerotier/zeronsd).\n\n`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.\n\n## Output Examples:\n\n```\n% ./target/release/nsbench 172.29.194.254 islay.domain -t 10 -l 12\n1s latency: 85.576µs | Successes: 253572 | Failures: 0 | Total Req: 253572\n1s latency: 95.595µs | Successes: 230841 | Failures: 0 | Total Req: 230841\n1s latency: 87.506µs | Successes: 241420 | Failures: 0 | Total Req: 241420\n1s latency: 93.204µs | Successes: 251606 | Failures: 0 | Total Req: 251606\n1s latency: 98.136µs | Successes: 252773 | Failures: 0 | Total Req: 252773\nNameserver: 172.29.194.254\nHost: islay.domain\nCPUs Used: 12\nSuccesses: 1319050\nFailures: 0\nSuccess Rate: 100.00%\nRuntime: 10s\nRequests: 131905/s\n```\n\n## Installation:\n\nI'll make a crate when it's more useful.\n\n```\ncargo install --git https://github.com/erikh/nsbench --branch main\n```\n\n## Usage:\n\n```\nnsbench \u003cnameserver ip\u003e \u003chost\u003e\n```\n\nThere are other flags. Use `--help` to access them. As of this writing, that looks like this:\n\n```\nUsage: nsbench \u003cnameserver\u003e \u003chost\u003e [-t \u003ctime-secs\u003e] [-l \u003ccpus\u003e] [--timeout \u003ctimeout\u003e]\n\nNameserver benchmarking/flooding tool\n\nOptions:\n  -t, --time-secs   time in seconds to run the test\n  -l, --cpus        limit the number of CPUs (default off)\n  --timeout         duration to wait (in ns) before considering a request failed\n  --help            display usage information\n```\n\n## Author\n\nErik Hollensbe \u003cgithub@hollensbe.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fnsbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikh%2Fnsbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fnsbench/lists"}