{"id":38085404,"url":"https://github.com/einfachandy/bench-hashmaps","last_synced_at":"2026-01-16T20:52:07.812Z","repository":{"id":172454742,"uuid":"649319188","full_name":"EinfachAndy/bench-hashmaps","owner":"EinfachAndy","description":"benchmark for golang hash maps ","archived":false,"fork":false,"pushed_at":"2023-07-04T16:56:10.000Z","size":616,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-29T18:15:08.756Z","etag":null,"topics":["bench","benchmark","benchmarking","data-structures","generic","go","golang","hash-map","hash-maps","hash-table","hash-tables","hashmap","hashtable","performance-analysis","performance-testing","swisstable"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/EinfachAndy.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-06-04T13:38:26.000Z","updated_at":"2023-12-05T08:06:38.000Z","dependencies_parsed_at":"2023-07-10T18:15:37.823Z","dependency_job_id":null,"html_url":"https://github.com/EinfachAndy/bench-hashmaps","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"2671c37992704bff1561da25e807a64d202a1e19"},"previous_names":["einfachandy/bench-hashmaps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EinfachAndy/bench-hashmaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinfachAndy%2Fbench-hashmaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinfachAndy%2Fbench-hashmaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinfachAndy%2Fbench-hashmaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinfachAndy%2Fbench-hashmaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EinfachAndy","download_url":"https://codeload.github.com/EinfachAndy/bench-hashmaps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinfachAndy%2Fbench-hashmaps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["bench","benchmark","benchmarking","data-structures","generic","go","golang","hash-map","hash-maps","hash-table","hash-tables","hashmap","hashtable","performance-analysis","performance-testing","swisstable"],"created_at":"2026-01-16T20:52:07.079Z","updated_at":"2026-01-16T20:52:07.803Z","avatar_url":"https://github.com/EinfachAndy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Hash Map Benchmark\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/EinfachAndy/bench-hashmaps/blob/main/LICENSE)\n\n# How to run:\n\n```bash\ngit clone git@github.com:EinfachAndy/bench-hashmaps.git\ncd bench-hashmaps\nmake run-bench\nmake charts\n```\n\n## Run custom benchmark\n\nThe Makefile target `run-bench` executes a new benchmark run and stores the results in `results/\u003c\u003e.out`.\nThe Default settings can be changed with the following environment variables:\n\n- `RANGES` list of integers (n)\n- `MAPS` list of map names\n\n```bash\nMAPS=\"swiss std\" RANGES=\"50000 100000 200000 400000\" make run-bench\n```\n\n### Supported hash maps\n\n| Name              | Module                |\n|-------------------|-----------------------|\n| std               | golang map |\n| robin             | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#RobinHood (lf 0.8) |\n| robinLowLoad      | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#RobinHood (lf 0.5) |\n| hopscotch         | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#Hopscotch (lf 0.8) |\n| hopscotchLowLoad  | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#Hopscotch (lf 0.5) |\n| unordered         | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#Unordered |\n| flat              | https://pkg.go.dev/github.com/EinfachAndy/hashmaps#Flat |\n| swiss             | https://pkg.go.dev/github.com/dolthub/swiss#Map |\n| generic           | https://pkg.go.dev/github.com/zyedidia/generic/hashmap#Map |\n| cornelk           | https://pkg.go.dev/github.com/cornelk/hashmap#Map |\n| sync              | https://pkg.go.dev/sync#Map |\n\n## Generate charts\n\nThe Makefile target `charts` generate HTML output for all benchmark files in the directory `results`.\n\n```bash\nmake charts\nfirefox results/IntelRCoreTMi7-10610UCPU180GHz_2023-06-11_00-36-01.out.html\n```\n\n## Results\n\n* [Intel Core i7-10610U](https://einfachandy.github.io/bench-hashmaps/results/IntelRCoreTMi7-10610UCPU180GHz_2023-07-01_12-04-35.out.html \"Plot\")\n* [Intel Core i7-7700](https://einfachandy.github.io/bench-hashmaps/results/IntelRCoreTMi7-7700CPU360GHz_2023-07-01_15-43-00.out.html \"Plot\")\n\n# Contributing\n\nIf you would like to add a new benchmark or hash map, feel free to contribute.\n\n### Note:\nThis benchmark is inspired from [Benchmark of major hash maps implementations](https://tessil.github.io/2016/08/29/benchmark-hopscotch-map.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinfachandy%2Fbench-hashmaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feinfachandy%2Fbench-hashmaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinfachandy%2Fbench-hashmaps/lists"}