{"id":38236045,"url":"https://github.com/hmilkovi/tls-bench","last_synced_at":"2026-01-17T01:05:40.721Z","repository":{"id":273950294,"uuid":"899726500","full_name":"hmilkovi/tls-bench","owner":"hmilkovi","description":"TLS handshake benchmarking tool that supports TCP and SMTP","archived":false,"fork":false,"pushed_at":"2025-02-23T21:47:49.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T22:27:17.095Z","etag":null,"topics":["benchmark","handshaker","tls"],"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/hmilkovi.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":"2024-12-06T22:00:22.000Z","updated_at":"2025-02-23T21:45:55.000Z","dependencies_parsed_at":"2025-01-24T00:18:20.139Z","dependency_job_id":"329361ea-cd59-492a-b5eb-45f48fbfcc9a","html_url":"https://github.com/hmilkovi/tls-bench","commit_stats":null,"previous_names":["hmilkovi/tls-bench"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hmilkovi/tls-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmilkovi%2Ftls-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmilkovi%2Ftls-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmilkovi%2Ftls-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmilkovi%2Ftls-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmilkovi","download_url":"https://codeload.github.com/hmilkovi/tls-bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmilkovi%2Ftls-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["benchmark","handshaker","tls"],"created_at":"2026-01-17T01:05:36.976Z","updated_at":"2026-01-17T01:05:40.706Z","avatar_url":"https://github.com/hmilkovi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TLS Bench\n[![MIT licensed][mit-badge]][mit-url]\n[![Build Status][actions-badge]][actions-url]\n\n[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[mit-url]: https://github.com/hmilkovi/tls-bench/blob/main/LICENSE\n[actions-badge]: https://github.com/hmilkovi/tls-bench/actions/workflows/ci.yml/badge.svg?branch=main\n[actions-url]: https://github.com/hmilkovi/tls-bench/actions/workflows/ci.yml\n\nA TLS benchmarking tool for evaluating servers TLS handshake performance\n\n## Motivation\nThis tool was born from the need to load test latencies of TLS-terminating services such as reverse proxies and load balancers.\n\nThis tool enables users to:\n* Compare latencies for different TLS-terminating balancers or reverse proxies.\n* Observe the impact of private key sizes on TLS handshake latencies and handshakes per second.\n* Replicate traffic patterns where TCP connections are short-lived, yet TLS is still necessary. This includes scenarios like the \"thundering herd\" effect, often observed in services handling affiliate links or URL shorteners, where a sudden surge of requests demands rapid TLS handshakes.\n* Long running tests without garbage collection pauses\n\n## Usage manual\n```console\nUsage: tls-bench [OPTIONS] --endpoint \u003cENDPOINT\u003e\n\nOptions:\n  -e, --endpoint \u003cENDPOINT\u003e\n          Endpoint to run TLS benchmark against\n  -p \u003cPROTOCOL\u003e\n          Protocol to use when running TLS benchmark [default: tcp] [possible values: tcp, smtp]\n  -t \u003cTLS_VERSION\u003e\n          TLS version number [default: tls12] [possible values: tls12, tls13]\n  -z, --zero-rtt\n          TLS Zero RTT boolean\n  -d, --duration \u003cDURATION\u003e\n          Duration of benchamrk test in seconds [default: 0]\n  -c, --concurrently \u003cCONCURRENTLY\u003e\n          Max concurrently running workers, defaults to available_parallelism [default: 10]\n      --timeout-ms \u003cTIMEOUT_MS\u003e\n          Timeout of tcp connection \u0026 tls handshake in miliseconds [default: 500]\n  -m, --max-handshakes-per-second \u003cMAX_HANDSHAKES_PER_SECOND\u003e\n          Maximum TLS handshakes per seconds [default: 1000]\n  -r, --ramp-up-sec \u003cRAMP_UP_SEC\u003e\n          Ramp up seconds, eatch step up per second is calculated = max_handshakes_per_second * elapsed_seconds / ramp_up_sec [default: 0]\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\nUsage Example:\n```console\ntls-bench -e 127.0.0.1:443 -t tls13 -c 10 -d 10 -m 20\n```\n\n## Output example\n```console\n⢁ TLS handshakes: 644 | errors: 0 | throughput 158 h/s | duration 4.073427s | success ratio 100%\n+---------------+------+-------------+---------+---------+---------+-----------+------+\n| Latencies     | Min  | AVG         | 50%’ile | 95%’ile | 99%’ile | 99.9%’ile | Max  |\n+=====================================================================================+\n| TLS Handshake | 34ms | 40.989132ms | 40ms    | 47ms    | 57.57ms | 61.357ms  | 62ms |\n|---------------+------+-------------+---------+---------+---------+-----------+------|\n| TCP Connect   | 13ms | 20.18789ms  | 20ms    | 26ms    | 36ms    | 49ms      | 49ms |\n+---------------+------+-------------+---------+---------+---------+-----------+------+\n```\n\n## Install\n\n### Pre-compiled executables\n\nGet them [here](https://github.com/hmilkovi/tls-bench/releases).\n\n## Homebrew\n```console\nbrew install hmilkovi/tap/tls-bench\n```\n\n## Feature Roadmap\nRough sketch of feature roadmap that will be implemented:\n- [x] Create Homebrew formula\n- [ ] Prometheus support\n- [x] Add ramp-up\n- [ ] Add load patterns\n\n## License\nSee [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmilkovi%2Ftls-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmilkovi%2Ftls-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmilkovi%2Ftls-bench/lists"}