{"id":36446057,"url":"https://github.com/2miners/stratum-ping","last_synced_at":"2026-01-11T22:44:29.355Z","repository":{"id":44357638,"uuid":"334822474","full_name":"2miners/stratum-ping","owner":"2miners","description":"The Stratum-based mining pool performance test tool.","archived":false,"fork":false,"pushed_at":"2023-12-22T04:47:45.000Z","size":5,"stargazers_count":156,"open_issues_count":1,"forks_count":58,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-12T20:36:00.027Z","etag":null,"topics":["ethereum","mining","mining-pool","stratum","stratum-proxy"],"latest_commit_sha":null,"homepage":"https://2miners.com","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/2miners.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-02-01T03:46:21.000Z","updated_at":"2025-02-18T02:00:38.000Z","dependencies_parsed_at":"2024-06-18T21:20:40.192Z","dependency_job_id":"e3151e18-93ff-4c32-985a-9fb5fe6708bb","html_url":"https://github.com/2miners/stratum-ping","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/2miners/stratum-ping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2miners%2Fstratum-ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2miners%2Fstratum-ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2miners%2Fstratum-ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2miners%2Fstratum-ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2miners","download_url":"https://codeload.github.com/2miners/stratum-ping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2miners%2Fstratum-ping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"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":["ethereum","mining","mining-pool","stratum","stratum-proxy"],"created_at":"2026-01-11T22:44:28.815Z","updated_at":"2026-01-11T22:44:29.344Z","avatar_url":"https://github.com/2miners.png","language":"Go","readme":"# stratum-ping\n\n## Abstract\n\nOften the performance of various mining pools is verified using the built-in `ping` utility. While this approach is feasible, it is more important to measure the actual response time from the pool, as it may be busy or using some geolocation-based forwarding solution that brings the connecting endpoint closer to the user but then it still takes some significant time for the actual data to be transferred.\n\nTherefore we find useful a mining-specific approach when we measure the amount of time required to connect and successfully pass authentication using the Stratum protocol. This provides more accurate readings in regards of what the mining software will actually do when mining.\n\nWe use this tool at 2Miners internally to measure the performance of our pools. It is capable of pinging through IPv4 and IPv6 with or without TLS.\n\n**TL;DR**: The ping to the pool server's box is not as significant as the actual response time through Stratum.\n\n## Usage\n\n```\nUsage of ./stratum-ping:\n  -6    use ipv6\n  -c int\n        stop after \u003ccount\u003e replies (default 5)\n  -p string\n        pass (default \"x\")\n  -t string\n        stratum type: stratum1, stratum2 (default \"stratum2\")\n  -tls\n        use TLS\n  -u string\n        login (default \"0x63a14c53f676f34847b5e6179c4f5f5a07f0b1ed\")\n\n```\n\n## Example Usage\n\n### IPv4 without TLS:\n```\n# ./stratum-ping eth.2miners.com:2020\nPING stratum eth.2miners.com (51.89.64.65) port 2020\neth.2miners.com (51.89.64.65): seq=0, time=14.239754ms\neth.2miners.com (51.89.64.65): seq=1, time=14.318485ms\neth.2miners.com (51.89.64.65): seq=2, time=16.103118ms\neth.2miners.com (51.89.64.65): seq=3, time=15.77519ms\neth.2miners.com (51.89.64.65): seq=4, time=14.223268ms\n\n--- eth.2miners.com ping statistics ---\n5 packets transmitted, 5 received, 0% packet loss, time 5.150504495s\nmin/avg/max = 14.223268ms, 14.931963ms, 16.103118ms\n```\n\n### IPv4 using TLS:\n```\n# ./stratum-ping -tls eth.2miners.com:12020\nPING stratum eth.2miners.com (51.195.88.15) TLS port 12020\neth.2miners.com (51.195.88.15): seq=0, time=308.065µs\neth.2miners.com (51.195.88.15): seq=1, time=165.527µs\neth.2miners.com (51.195.88.15): seq=2, time=192.482µs\neth.2miners.com (51.195.88.15): seq=3, time=191.818µs\neth.2miners.com (51.195.88.15): seq=4, time=169.952µs\n\n--- eth.2miners.com ping statistics ---\n5 packets transmitted, 5 received, 0% packet loss, time 5.021413961s\nmin/avg/max = 165.527µs, 205.568µs, 308.065µs\n```\n\n### IPv6 without TLS:\n```\n# ./stratum-ping -6 eth.2miners.com:2020\nPING stratum eth.2miners.com (2001:41d0:700:3441::) port 2020\neth.2miners.com (2001:41d0:700:3441::): seq=0, time=176.611µs\neth.2miners.com (2001:41d0:700:3441::): seq=1, time=177.769µs\neth.2miners.com (2001:41d0:700:3441::): seq=2, time=185.733µs\neth.2miners.com (2001:41d0:700:3441::): seq=3, time=166.971µs\neth.2miners.com (2001:41d0:700:3441::): seq=4, time=171.775µs\n\n--- eth.2miners.com ping statistics ---\n5 packets transmitted, 5 received, 0% packet loss, time 5.002555972s\nmin/avg/max = 166.971µs, 175.771µs, 185.733µs\n```\n\n## Copyright\n\nCopyright ©2021, [2Miners.com](https://2miners.com). All rights reserved.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2miners%2Fstratum-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2miners%2Fstratum-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2miners%2Fstratum-ping/lists"}