{"id":15576338,"url":"https://github.com/damnever/have-fun-1","last_synced_at":"2025-10-06T16:05:12.986Z","repository":{"id":141674709,"uuid":"135732859","full_name":"damnever/have-fun-1","owner":"damnever","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-02T15:57:25.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T20:28:21.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/damnever.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-01T15:14:23.000Z","updated_at":"2018-06-18T15:07:14.000Z","dependencies_parsed_at":"2024-07-16T23:21:56.158Z","dependency_job_id":null,"html_url":"https://github.com/damnever/have-fun-1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damnever/have-fun-1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fhave-fun-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fhave-fun-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fhave-fun-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fhave-fun-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damnever","download_url":"https://codeload.github.com/damnever/have-fun-1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damnever%2Fhave-fun-1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273868158,"owners_count":25182423,"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-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-10-02T18:46:38.482Z","updated_at":"2025-10-06T16:05:07.943Z","avatar_url":"https://github.com/damnever.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## None\n\nThe current result(use docker) is not what I expected, maybe some thing wrong with network emulation, or docker ..\n\n**NOTE**: problem solved.. see https://github.com/golang/go/issues/25701 for details.\n\n\n### In Real World (multi-datacenter)\n\nIs there some thing wrong with Golang(IO model/runtime)?\n\npprof, perf_event and other profile tools doesn't give a shit..\n\n```\n$ python client.py --addr 10.xx.xx.xx:8020\n0.621856927872 s\n0.215888977051 s\n0.106964111328 s\n0.129124879837 s\n0.132770061493 s\n0.132673025131 s\n0.162160873413 s\n0.181607961655 s\n0.180653095245 s\n0.180568933487 s\n[AVG] 0.204426884651 s\n$ ./client -addr 10.xx.xx.xx:8020\n228.383141ms\n96.566201ms\n107.525007ms\n121.94838ms\n127.089427ms\n126.70438ms\n126.264553ms\n126.128879ms\n125.931539ms\n125.36633ms\n[AVG] 131.190783ms\n$ ./client -addr 10.xx.xx.xx:8020 -rbufsz 4194304\n896.057939ms\n843.960815ms\n843.428539ms\n844.362365ms\n843.698511ms\n843.693909ms\n843.272623ms\n843.934291ms\n843.394633ms\n843.344434ms\n[AVG] 848.914805ms\n$ python client.py --addr 10.xx.xx.xx:8020 --rbufsz 4194304\n0.227913141251 s\n0.0962738990784 s\n0.102230072021 s\n0.12353181839 s\n0.141967058182 s\n0.170171976089 s\n0.172912120819 s\n0.172124862671 s\n0.171636104584 s\n0.171622037888 s\n[AVG] 0.155038309097 s\n```\n\n### Use docker\n\n```\n# build go programs\nmake build-linux\n\n# build and run containers\ndocker-compose up -d\ndocker-compose ps\n\n# download https://github.com/alexei-led/pumba/releases\n# delay 25ms\npumba netem --duration 1h delay --time 25 --jitter 0 have-fun-1_server_1\n\n# show results\ndocker attach have-fun-1_client_1\nping server\nsh run_client.sh\n\n# stop containers\ndocker-compose stop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamnever%2Fhave-fun-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamnever%2Fhave-fun-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamnever%2Fhave-fun-1/lists"}