{"id":27407378,"url":"https://github.com/pykello/the-sort","last_synced_at":"2025-08-14T07:41:39.461Z","repository":{"id":187784314,"uuid":"677395019","full_name":"pykello/the-sort","owner":"pykello","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-12T15:58:50.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T10:21:07.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/pykello.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}},"created_at":"2023-08-11T13:16:15.000Z","updated_at":"2023-08-29T15:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ed9a2b3-a038-4a0b-9760-2c4b92f924a8","html_url":"https://github.com/pykello/the-sort","commit_stats":null,"previous_names":["pykello/the-sort"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykello%2Fthe-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykello%2Fthe-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykello%2Fthe-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykello%2Fthe-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pykello","download_url":"https://codeload.github.com/pykello/the-sort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837287,"owners_count":21169374,"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":"2025-04-14T07:12:33.706Z","updated_at":"2025-04-14T07:12:34.263Z","avatar_url":"https://github.com/pykello.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmarking parallel sort algorithms!\r\n\r\n## Installing Requirements\r\n\r\n```\r\nsudo apt update\r\nsudo apt install build-essential cmake libtbb-dev\r\n```\r\n\r\n## Building \u0026 Running\r\n\r\n```\r\nmkdir build\r\ncd build\r\ncmake ..\r\nmake\r\n\r\n# Run all benchmarks\r\n./sort\r\n\r\n# Don't run std\r\n./sort --disable-std\r\n\r\n# Don't run partitioned\r\n./sort --disable-partitioned\r\n\r\n# Change data size\r\n./sort --data-size 1000000\r\n\r\n# Change thread counts\r\n./sort --threads 4,8,16\r\n```\r\n\r\n## Results\r\n\r\n* Data: 200M random 32-bit integers\r\n* [Ryzen 3900x](https://www.amd.com/en/product/8436): 12 cores, 24 threads\r\n* [EPYC 7502P](https://www.amd.com/en/products/cpu/amd-epyc-7502p): 32 cores, 64 threads\r\n\r\n| Algorithm        | threads | Ryzen 3900x | EPYC 7502P |\r\n|------------------|---------|-------------|------------|\r\n| std::sort seq    | 1       | 13.760 s    | 18.520 s   |\r\n| std::sort par    | all     | 1.554 s     | 1.627 s    |\r\n| partitioned_sort | 2       | 7.812 s     | 10.174 s   |\r\n| partitioned sort | 4       | 4.155 s     | 5.255 s    |\r\n| partitioned sort | 8       | 2.322 s     | 2.887 s    |\r\n| partitioned sort | 12      | 1.807 s     | 2.041 s    |\r\n| partitioned sort | 16      | 1.550 s     | 1.617 s    |\r\n| partitioned sort | 24      | **1.215 s** | 1.211 s    |\r\n| partitioned sort | 32      | 1.410 s     | 1.016 s    |\r\n| partitioned sort | 64      | 1.584 s     | **0.808 s**|\r\n| partitioned sort | 128     | 2.201 s     | 1.125 s    |\r\n| partitioned sort | 256     | 3.500 s     | 1.685 s    |\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykello%2Fthe-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpykello%2Fthe-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykello%2Fthe-sort/lists"}