{"id":16025192,"url":"https://github.com/justintimperio/pq-bench","last_synced_at":"2025-10-10T10:10:04.163Z","repository":{"id":254192769,"uuid":"845337354","full_name":"JustinTimperio/pq-bench","owner":"JustinTimperio","description":"Benchmarks for various priority queue implementations in Go, Rust, Zig, and C++","archived":false,"fork":false,"pushed_at":"2024-12-22T05:55:53.000Z","size":157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T04:52:16.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Zig","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/JustinTimperio.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-08-21T03:55:13.000Z","updated_at":"2024-12-22T05:55:57.000Z","dependencies_parsed_at":"2024-09-09T04:53:24.985Z","dependency_job_id":"86d5325e-ebf6-41eb-9447-99de9271d803","html_url":"https://github.com/JustinTimperio/pq-bench","commit_stats":null,"previous_names":["justintimperio/pq-bench"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JustinTimperio/pq-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fpq-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fpq-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fpq-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fpq-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustinTimperio","download_url":"https://codeload.github.com/JustinTimperio/pq-bench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fpq-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003467,"owners_count":26083594,"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-10-10T02:00:06.843Z","response_time":62,"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-08T19:41:42.606Z","updated_at":"2025-10-10T10:10:04.107Z","avatar_url":"https://github.com/JustinTimperio.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PQ-Bench\n\n## Background\nThis repository contains benchmarks for various priority queue implementations in Go, Rust, Zig, and C++. All tests are single threaded and designed to try and reproduce roughly the same workload across all implementations. While these benchmarks are not perfect, they should give a rough idea of the performance of each implementation and how they might work in a real-world scenario. \n\n### Sister Repositories\n- [fibheap (Fibonacci Heaps)](https://github.com/JustinTimperio/fibheap)\n- [gpq (Go Priority Queue)](https://github.com/JustinTimperio/gpq)\n- [rpq (Rust Priority Queue)](https://github.com/JustinTimperio/rpq)\n\n\n## Benchmarks\n![Benchmark](./docs/Time-Spent-vs-Implementation.png)\n\nLanguage             | Time Spent (seconds)\n---------------------|---------------------\nRPQ                  | 1.38\nRPQ (Batch)          | 0.98\nRPQ (Batch Parallel) | 0.62\nGPQ                  | 5.54\nGPQ (Batch)          | 4.83\nGPQ (Batch Parallel) | 2.98\nZig (STD LIB)        | 0.87\nRust (STD LIB)       | 0.72\nGo (STD LIB)         | 3.61\nC++ (STD LIB)        | 4.24\nPython (STD LIB)     | 15.03\n\n## Features\n| Feature          | GPQ | RPQ | Go Heap | Zig Priority Queue | C++ Queue | Rust Binary Heap |\n|------------------|-----|-----|---------|--------------------|-----------|------------------|\n| Enqueue          | ✅   | ✅   | ✅       | ✅                  | ✅         | ✅                |\n| Dequeue          | ✅   | ✅   | ✅       | ✅                  | ✅         | ✅                |\n| Disk Cache       | ✅   | ✅   | ❌       | ❌                  | ❌         | ❌                |\n| Mutable Priority | ✅   | ✅   | ✅       | ❌                  | ❌         | ❌                |\n| Timeouts         | ✅   | ✅   | ❌       | ❌                  | ❌         | ❌                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintimperio%2Fpq-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustintimperio%2Fpq-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintimperio%2Fpq-bench/lists"}