{"id":22246715,"url":"https://github.com/lucacappelletti94/comparing-hashsets","last_synced_at":"2025-03-25T11:24:56.196Z","repository":{"id":264968136,"uuid":"859951863","full_name":"LucaCappelletti94/comparing-hashsets","owner":"LucaCappelletti94","description":"A small rust project comparing the perfomance of different set implementations","archived":false,"fork":false,"pushed_at":"2024-09-19T16:07:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T09:51:40.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/LucaCappelletti94.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":"2024-09-19T14:58:23.000Z","updated_at":"2024-09-19T16:07:48.000Z","dependencies_parsed_at":"2024-11-27T02:12:04.134Z","dependency_job_id":"ab1da37f-6155-4238-9cbd-5fdd08c92dec","html_url":"https://github.com/LucaCappelletti94/comparing-hashsets","commit_stats":null,"previous_names":["lucacappelletti94/comparing-hashsets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaCappelletti94%2Fcomparing-hashsets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaCappelletti94%2Fcomparing-hashsets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaCappelletti94%2Fcomparing-hashsets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaCappelletti94%2Fcomparing-hashsets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucaCappelletti94","download_url":"https://codeload.github.com/LucaCappelletti94/comparing-hashsets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245451337,"owners_count":20617496,"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":[],"created_at":"2024-12-03T05:30:11.613Z","updated_at":"2025-03-25T11:24:56.154Z","avatar_url":"https://github.com/LucaCappelletti94.png","language":"Rust","readme":"# Comparing HashSets\nA small rust project comparing the perfomance of different set implementations\n\nThe benchmark consists of inserting a large amount of u64 values sampled using a splitmix64 + xorshift64 random number generator, and measuring the time it takes to insert all the values.\n\n## Running the benchmarks\nThe benchmark is a criterion benchmark, so you can run it using cargo. To run the benchmark, use the following command:\n\n```bash\nRUSTFLAGS=\"-C target-cpu=native\" cargo bench\n```\n\n## Current results\nThe benchmark results, sorted by decreasing performance, are as follows:\n\n| Collection                   | Time (ms)         |\n|------------------------------|-------------------|\n| `rustc_hash::FxHashSet`      | 1.3063 - 1.3076   |\n| `ahash::AHashSet`            | 1.6001 - 1.6054   |\n| `hashbrown::HashSet`         | 1.9176 - 1.9227   |\n| `std::collections::HashSet`  | 4.3500 - 4.3569   |\n| `std::collections::BTreeSet` | 8.1370 - 8.1452   |\n| `Vec`                        | 1,109.2 - 1,109.5 |\n\n## Would you like to add another HashSet implementation\n\nBy all means, we would love to see more implementations. Open up an issue to discuss it, and then submit a PR with your implementation. We will be happy to review it.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucacappelletti94%2Fcomparing-hashsets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucacappelletti94%2Fcomparing-hashsets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucacappelletti94%2Fcomparing-hashsets/lists"}