{"id":15665153,"url":"https://github.com/jeromewu/go-set-benchmark","last_synced_at":"2025-03-30T04:24:40.442Z","repository":{"id":74168266,"uuid":"375913646","full_name":"jeromewu/go-set-benchmark","owner":"jeromewu","description":"Benchmark perofmrance of map[]bool and map[]struct{}","archived":false,"fork":false,"pushed_at":"2021-06-11T05:53:40.000Z","size":3,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T06:43:40.553Z","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/jeromewu.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":"2021-06-11T05:23:11.000Z","updated_at":"2021-10-26T02:55:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"dcb73c58-ee3c-4f4c-af8f-0af85b5ef9bb","html_url":"https://github.com/jeromewu/go-set-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fgo-set-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fgo-set-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fgo-set-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromewu%2Fgo-set-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeromewu","download_url":"https://codeload.github.com/jeromewu/go-set-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246275203,"owners_count":20751242,"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-10-03T13:45:09.642Z","updated_at":"2025-03-30T04:24:40.423Z","avatar_url":"https://github.com/jeromewu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Set benchmark in Golang\n=======================\n\n## Execution\n\n```\n$ go get -u golang.org/x/perf/cmd/benchstat\n$ make\n```\n\n## Result\n\n|          | map[]bool | map[]struct{}{} | map[]interface{} |\n| -------- | ------------- | ------------------- | -------------------- |\n| time/op (execution time) | 3.27s | 3.12s | 5.96s |\n| alloc/op (memory consumption) | 884 MB | 802 MB | 1.98 GB |\n\nUsing `map[]struct{}` is around 5% faster in time and 10% less memory consumption.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewu%2Fgo-set-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromewu%2Fgo-set-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromewu%2Fgo-set-benchmark/lists"}