Skip to main content

net-benchmark

fast, extensible network benchmarking — dns, http, and ssl from a single cli.

PyPI version Python License

CI Downloads Docs Discussions PyPI - Wheel GitHub Stars

pip install net-benchmark
pip install net-benchmark[pdf]   # with pdf export

successor to dns-benchmark-tool — fully backward compatible. dns-benchmark command still works as an alias.


tools

dns benchmark — resolver performance, dnssec, doh/dot
net-benchmark dns benchmark --use-defaults
net-benchmark dns benchmark --use-defaults --doh
net-benchmark dns benchmark --use-defaults --dot --dnssec-validate
net-benchmark dns compare Cloudflare Google Quad9 --dnssec-validate
net-benchmark dns monitoring --use-defaults --interval 30
flag description default
--use-defaults built-in resolvers and sample domains
--resolvers name, ip, or file
--domains comma-separated or file
--iterations queries per resolver 1
--doh dns-over-https false
--doh-url comma-separated urls, one per resolver
--dot dns-over-tls false
--dnssec-validate fail if ad flag absent false
--formats csv, excel, pdf, json csv,excel,pdf

full documentation: github.com/net-benchmark/net-benchmark

http benchmark — latency, ttfb, security headers, tls certs
net-benchmark http benchmark --use-defaults
net-benchmark http benchmark --use-defaults --iterations 5
net-benchmark http benchmark --targets "https://api.example.com" --method POST --body '{}'
net-benchmark http compare api.example.com api2.example.com --iterations 3
net-benchmark http top --use-defaults --limit 5
net-benchmark http monitoring --use-defaults --interval 30
flag description default
--use-defaults built-in target urls
--targets comma-separated urls or file
--method http verb (get, post, etc.) get
--headers "key:value,key2:value2"
--body inline request body (e.g. json)
--body-file path to body file
--auth basic:user:pass or bearer:token
--cert / --cert-key mtls client certificate
--proxy proxy url
--assert repeatable: status=200, body_contains=ok, max_latency=500, etc.
--iterations requests per target 1
--no-http2 force http/1.1 false
--no-verify-ssl skip tls verification false
--formats csv, excel, pdf, json csv,excel,pdf

full documentation: github.com/net-benchmark/net-benchmark

ssl check — certificate expiry and chain validation (coming 0.6.0)
net-benchmark ssl check --hosts "example.com,api.example.com"

full documentation: github.com/net-benchmark/net-benchmark


export formats

format flag notes
csv --formats csv raw results + summary
excel --formats excel charts, dnssec sheet, colour coding
pdf --formats pdf requires pip install net-benchmark[pdf]
json --formats json full payload including protocol stats

links


license

mit © frankovo

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

net_benchmark-0.5.1.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

net_benchmark-0.5.1-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

File details

Details for the file net_benchmark-0.5.1.tar.gz.

File metadata

  • Download URL: net_benchmark-0.5.1.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for net_benchmark-0.5.1.tar.gz
Algorithm Hash digest
SHA256 de7155aa23738d05ec10dab6c5187d8058dcd5f6338b42925e057337376412c9
MD5 09d282fc663bc0c240a3eb72e7155bb1
BLAKE2b-256 f09f96fdba26d7b2553e4a130acce8060a6750b81d5bb1fa3b1946d8ff3759e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_benchmark-0.5.1.tar.gz:

Publisher: pypi.yml on net-benchmark/net-benchmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file net_benchmark-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: net_benchmark-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for net_benchmark-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa3b155bf89faa2caa552e1ee35d6d19a1ddba840661ce52e8c6d3b2db59a488
MD5 dfbe8fa71f4be7839ec73b070ac1903a
BLAKE2b-256 d92f81e73ae8bb8edafe783f90228ccc1e2b681de4b2f400a2a8c24da43fc998

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_benchmark-0.5.1-py3-none-any.whl:

Publisher: pypi.yml on net-benchmark/net-benchmark

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page