{"id":18770061,"url":"https://github.com/yaroslaff/bulk-http-check","last_synced_at":"2025-04-13T07:31:59.243Z","repository":{"id":125453983,"uuid":"607638356","full_name":"yaroslaff/bulk-http-check","owner":"yaroslaff","description":"Very fast and simple concurrent HTTP client (3500 HTTP req/s)","archived":false,"fork":false,"pushed_at":"2023-03-04T08:11:04.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T12:41:48.158Z","etag":null,"topics":["bulk","check","concurrent","connections","crawler","header","http","https","multiple","parallel","spider","status"],"latest_commit_sha":null,"homepage":"","language":"Go","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/yaroslaff.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}},"created_at":"2023-02-28T11:35:47.000Z","updated_at":"2023-11-29T23:44:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"4219f597-30f1-45e2-a23e-20df8f2fa9ed","html_url":"https://github.com/yaroslaff/bulk-http-check","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"41f55718a92b70066d242b4dd35b6287ebb2cb7c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fbulk-http-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fbulk-http-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fbulk-http-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fbulk-http-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/bulk-http-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223573822,"owners_count":17167384,"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":["bulk","check","concurrent","connections","crawler","header","http","https","multiple","parallel","spider","status"],"created_at":"2024-11-07T19:17:57.682Z","updated_at":"2025-04-13T07:31:59.214Z","avatar_url":"https://github.com/yaroslaff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bulk http check\n\nVery fast concurrent check of many HTTP/s URLs. (thousands requests per seconds, more then 3 million requests per hour on cheap VPS)\n\n## Usage examples\n`urls.txt` is simple one url per line, e.g.:\n~~~\nhttps://httpbin.org/delay/10\nhttps://httpbin.org/status/200\n...\n~~~\n\nSimplest case, just get status (if no errors):\n```shell\n$ ./bulk-http-check \u003c urls.txt \nhttps://httpbin.org/status/404 OK 404\n...\n```\n\nShow specific HTTP header (and use 20 concurrent connections):\n```\n$ ./bulk-http-check -n 20 -s content-type \u003c urls.txt \nhttps://httpbin.org/json OK 200 application/json\n... \n```\n\nIf you want to know content-size, it could be little more tricky. Most reliable is to combine `-l` flag with `-g` (use HTTP GET method instead of HEAD). Sometimes Content-Length (reported from server) does not reflect real payload size because of encoding/gzipping (in this case, it's unavailable in headers).\n\n```\n$ ./bulk-http-check -l -g \u003c urls.txt \nhttps://httpbin.org/status/200 OK 200 0\nhttps://www.google.com/1 OK 404 1562\nhttps://httpbin.org/json OK 200 429\n```\n\n## Benchmarks\nIf specify `-b N`, bulk-http-check will print benchmark results on stderr, like:\n~~~\n# runs 10 seconds, processed 14302, rate: 1430.20/sec\n# runs 20 seconds, processed 49920, rate: 2496.00/sec\n# runs 30 seconds, processed 125943, rate: 4198.10/sec\n~~~\n\nOption `-x N` to eXit automatically after N seconds.\n\nCore i5 is my home desktop with 100Mbps Internet. CX11 is cheapest hetzner VPS with 2Gb RAM, AX51-NVMe is dedicated Hetzner server with 8 cores, 16 threads and 64Gb. Numbers in table are requests per second.\n\n\n| Connections  | Core i5-4570 | CX11 |  AX51-NVMe |\n|---           |---           |---   |---         |\n| 1            | 5            | 23   |         24 |\n| 10           | 50           |113   |        208 |\n| 100          | 255          |1170  |       1829 |\n| 1000         | 1188         |1743 *|       2540 |\n| 10000        | 3098 *       |--    |       3458 |\n\n`*` - Errors happened during tests, mostly timeouts because hit bandwidth limit.\n\nI checked 15 million URLs on 1MB RAM virtual server (200 connections) in less then 5 hours with final benchmark:\n~~~\nruns 17160 seconds, processed 15276607, rate: 890.25/sec\n~~~\n\n## Install\n\n### Install via go install\nIf you have Golang installed:\n~~~\ngo install github.com/yaroslaff/bulk-http-check\n~~~\n\n### Install from repo\n~~~\ngit clone https://github.com/yaroslaff/bulk-http-check\ncd bulk-http-check\ngo buld\ncp bulk-http-check /usr/local/bin\n~~~\n\n### Download static binary \nVisit [Latest release](https://github.com/yaroslaff/bulk-http-check/releases/latest) and download `bulk-http-check` from there.\nThen do:\n~~~\nchmod +x bulk-http-check\ncp bulk-http-check /usr/local/bin\n~~~\n\n\n\n## Command-line options\n\n```\n$ ./bulk-http-check -h\nUsage of ./bulk-http-check:\n  -1\tDisable HTTP/2 support\n  -g\tuse GET method instead of HEAD\n  -l\tShow Content-length\n  -n int\n    \tNumber of connections (default 5)\n  -s string\n    \tShow this header\n  -t int\n    \tTimeout (5) (default 5)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fbulk-http-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Fbulk-http-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fbulk-http-check/lists"}