{"id":15692722,"url":"https://github.com/sgreben/tcp-time","last_synced_at":"2025-10-08T16:10:17.318Z","repository":{"id":57745818,"uuid":"126090812","full_name":"sgreben/tcp-time","owner":"sgreben","description":"measures TCP connection durations to a given target, prints JSON","archived":false,"fork":false,"pushed_at":"2018-03-22T01:42:58.000Z","size":3832,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T03:15:32.791Z","etag":null,"topics":["cli","connection","csv","histogram","json","mean","ping","quantile","standard-deviation","tcp","tcp-ping","time"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgreben.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T22:30:22.000Z","updated_at":"2021-09-12T10:00:39.000Z","dependencies_parsed_at":"2022-08-27T01:00:11.750Z","dependency_job_id":null,"html_url":"https://github.com/sgreben/tcp-time","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sgreben/tcp-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Ftcp-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Ftcp-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Ftcp-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Ftcp-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgreben","download_url":"https://codeload.github.com/sgreben/tcp-time/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgreben%2Ftcp-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278973126,"owners_count":26078167,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","connection","csv","histogram","json","mean","ping","quantile","standard-deviation","tcp","tcp-ping","time"],"created_at":"2024-10-03T18:39:18.719Z","updated_at":"2025-10-08T16:10:17.291Z","avatar_url":"https://github.com/sgreben.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tcp-time\n\nRepeatedly measures TCP connection durations to a given target. Prints the measurements and a summary (mean, standard deviation, quantiles, histogram) as JSON to stdout.\n\n\u003c!-- TOC --\u003e\n\n- [Get it](#get-it)\n- [Use it](#use-it)\n- [Example](#example)\n\n\u003c!-- /TOC --\u003e\n\n## Get it\n\n```bash\ngo get -u github.com/sgreben/tcp-time/cmd/tcp-time\n```\n\nOr [download the binary](https://github.com/sgreben/tcp-time/releases/latest) from the releases page. \n\n```bash\n# Linux\ncurl -LO https://github.com/sgreben/tcp-time/releases/download/1.0.5/tcp-time_1.0.5_linux_x86_64.zip\nunzip tcp-time_1.0.5_linux_x86_64.zip\n\n# OS X\ncurl -LO https://github.com/sgreben/tcp-time/releases/download/1.0.5/tcp-time_1.0.5_osx_x86_64.zip\nunzip tcp-time_1.0.5_osx_x86_64.zip\n\n# Windows\ncurl -LO https://github.com/sgreben/tcp-time/releases/download/1.0.5/tcp-time_1.0.5_windows_x86_64.zip\nunzip tcp-time_1.0.5_windows_x86_64.zip\n```\n\n## Use it\n\n```text\nUsage of tcp-time:\n  -target string\n    \thost:port to ping. (default \"duckduckgo.com:443\")\n  -n int\n    \tNumber of connections to make. (default 10)\n  -p int\n    \tNumber of connections to make in parallel. (default 3)\n  -b int\n    \tNumber of histogram bins. (default 5)\n  -rate-limit float\n    \tRate limit (connections per second) to apply.\n  -csv\n    \tPrint CSV (index,success,duration) instead of JSON\n  -csv-file string\n        Write CSV (index,success,duration) to a file.\n  -progress\n    \tPrint a progress bar to stderr.\n  -debug\n    \tPrint debug logs to stderr.\n```\n\n## Example\n\n```bash\n$ tcp-time -target github.com:443 -n 100 | jp -type bar -xy '..[Label,Count]'\n                                    47.0\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                               ██████████████\n                     23.0      ██████████████      21.0\n                ██████████████ ██████████████ ██████████████\n                ██████████████ ██████████████ ██████████████\n                ██████████████ ██████████████ ██████████████\n                ██████████████ ██████████████ ██████████████\n                ██████████████ ██████████████ ██████████████\n                ██████████████ ██████████████ ██████████████\n       4.0      ██████████████ ██████████████ ██████████████       5.0\n ██████████████ ██████████████ ██████████████ ██████████████ ██████████████\n\n  118.413316ms   122.026494ms   125.639672ms   129.252851ms   132.866029ms\n```\n\n```bash\n$ tcp-time -target github.com:443 -n 1000\n{\n  \"Measurements\": [\n    {\n      \"Success\": true,\n      \"Duration\": 137026172\n    },\n    {\n      \"Success\": true,\n      \"Duration\": 137579594\n    },\n    {\n      \"Success\": true,\n      \"Duration\": 138099878\n    },\n    # ...\n  ],\n  \"Summary\": {\n    \"All\": {\n      \"Mean\": 127847627.927,\n      \"StdDev\": 3758632.3347467924,\n      \"Quantiles\": [\n        117717262,\n        125723549,\n        127955884,\n        129484843,\n        159901839\n      ],\n      \"Histogram\": [\n        {\n          \"Label\": \"117.717262ms\",\n          \"Value\": 117717262,\n          \"Count\": 293\n        },\n        {\n          \"Label\": \"126.154177ms\",\n          \"Value\": 126154177,\n          \"Count\": 684\n        },\n        {\n          \"Label\": \"134.591093ms\",\n          \"Value\": 134591093,\n          \"Count\": 20\n        },\n        {\n          \"Label\": \"143.028008ms\",\n          \"Value\": 143028008,\n          \"Count\": 1\n        },\n        {\n          \"Label\": \"151.464924ms\",\n          \"Value\": 151464924,\n          \"Count\": 2\n        }\n      ]\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgreben%2Ftcp-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgreben%2Ftcp-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgreben%2Ftcp-time/lists"}