{"id":22166507,"url":"https://github.com/alextanhongpin/go-heapsort","last_synced_at":"2025-10-29T21:11:58.403Z","repository":{"id":79114952,"uuid":"135826904","full_name":"alextanhongpin/go-heapsort","owner":"alextanhongpin","description":"A naive implementation of HeapSort in Go","archived":false,"fork":false,"pushed_at":"2018-06-02T14:58:38.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T21:54:19.956Z","etag":null,"topics":["benchmark","golang","heapsort"],"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/alextanhongpin.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-02T14:58:14.000Z","updated_at":"2018-06-02T15:00:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"715ed400-e67a-4261-90c1-7280b54ad500","html_url":"https://github.com/alextanhongpin/go-heapsort","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/alextanhongpin%2Fgo-heapsort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgo-heapsort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgo-heapsort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fgo-heapsort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextanhongpin","download_url":"https://codeload.github.com/alextanhongpin/go-heapsort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245307117,"owners_count":20594013,"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":["benchmark","golang","heapsort"],"created_at":"2024-12-02T05:19:44.867Z","updated_at":"2025-10-29T21:11:58.353Z","avatar_url":"https://github.com/alextanhongpin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# heapsort\n\nA naive heapsort implementation in golang, to test the performance against the standard `sort` package.\n\n## Benchmark\n\n```\n$ go test -bench=. -benchmem\n```\n\nOutput:\n\n```bash\ngoos: darwin\ngoarch: amd64\npkg: github.com/alextanhongpin/go-heapsort\nBenchmarkHeapSort-4          \t20000000\t        98.0 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSortInt-4           \t10000000\t       168 ns/op\t      80 B/op\t       2 allocs/op\nBenchmarkHeapSortItem-4      \t20000000\t        97.3 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSortSliceStable-4   \t 3000000\t       420 ns/op\t     256 B/op\t       4 allocs/op\nPASS\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fgo-heapsort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextanhongpin%2Fgo-heapsort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fgo-heapsort/lists"}