{"id":17462866,"url":"https://github.com/mralias/reservoir-sampling","last_synced_at":"2025-07-25T06:04:30.744Z","repository":{"id":189180972,"uuid":"672076652","full_name":"MrAlias/reservoir-sampling","owner":"MrAlias","description":"Comparison of reservoir sampling algorithms","archived":false,"fork":false,"pushed_at":"2023-08-18T14:39:11.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T09:56:14.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrAlias.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-07-28T21:31:13.000Z","updated_at":"2023-08-18T14:40:36.000Z","dependencies_parsed_at":"2023-08-18T17:08:54.258Z","dependency_job_id":null,"html_url":"https://github.com/MrAlias/reservoir-sampling","commit_stats":null,"previous_names":["mralias/reservoir-sampling"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrAlias/reservoir-sampling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Freservoir-sampling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Freservoir-sampling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Freservoir-sampling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Freservoir-sampling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrAlias","download_url":"https://codeload.github.com/MrAlias/reservoir-sampling/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Freservoir-sampling/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266963279,"owners_count":24013020,"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-07-25T02:00:09.625Z","response_time":70,"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-18T09:10:11.622Z","updated_at":"2025-07-25T06:04:30.725Z","avatar_url":"https://github.com/MrAlias.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reservoir Sampling Algorithms\n\nComparison of reservoir sampling algorithms.\n\n## Results\n\n```sh\ngo test -run='^$' -bench=. -count=10 \u003e results.txt \u0026\u0026 benchstat results.txt\n```\n\n```\ngoos: linux\ngoarch: amd64\npkg: github.com/MrAlias/reservoir-sampling\ncpu: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz\n              │ results.txt │\n              │   sec/op    │\nRNG/Int63-8     3.347n ± 2%\nRNG/Float64-8   3.923n ± 5%\nSampler/R-8     22.08n ± 2%\nSampler/L-8     2.312n ± 5%\nSampler/X-8     3.338n ± 7%\nSampler/Z-8     2.372n ± 8%\ngeomean         4.176n\n```\n\n## References\n\n- [Reservoir Sampling Wiki](https://en.wikipedia.org/wiki/Reservoir_sampling)\n- [Vitter, Jeffrey S. (1 March 1985). \"Random sampling with a reservoir\"](http://www.cs.umd.edu/~samir/498/vitter.pdf)\n- [Java implementation version](https://richardstartin.github.io/posts/reservoir-sampling)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmralias%2Freservoir-sampling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmralias%2Freservoir-sampling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmralias%2Freservoir-sampling/lists"}