{"id":20322496,"url":"https://github.com/suvrik/allocator_benchmark","last_synced_at":"2025-07-14T13:08:44.289Z","repository":{"id":189966611,"uuid":"367847613","full_name":"suVrik/allocator_benchmark","owner":"suVrik","description":"Allocator Benchmark","archived":false,"fork":false,"pushed_at":"2021-05-16T10:39:30.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T10:13:47.234Z","etag":null,"topics":["allocator","benchmark","buddy","memory","pool"],"latest_commit_sha":null,"homepage":"","language":"C++","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/suVrik.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":"2021-05-16T10:23:37.000Z","updated_at":"2021-06-04T21:33:34.000Z","dependencies_parsed_at":"2023-08-22T18:21:36.374Z","dependency_job_id":null,"html_url":"https://github.com/suVrik/allocator_benchmark","commit_stats":null,"previous_names":["suvrik/allocator_benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suVrik/allocator_benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suVrik%2Fallocator_benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suVrik%2Fallocator_benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suVrik%2Fallocator_benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suVrik%2Fallocator_benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suVrik","download_url":"https://codeload.github.com/suVrik/allocator_benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suVrik%2Fallocator_benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265297041,"owners_count":23742585,"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":["allocator","benchmark","buddy","memory","pool"],"created_at":"2024-11-14T19:22:34.304Z","updated_at":"2025-07-14T13:08:44.254Z","avatar_url":"https://github.com/suVrik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Allocator Benchmark\n\nFor proper benchmark source must be compiled in release mode.\nThe fact that one allocator allocates faster than another doesn't necessary mean that it's better for general purpose allocations.\nEach allocator has its own scope of application.\n\n| Allocator | Size | Count | Alloc time | Dealloc time | Alloc improvment* | Dealloc improvment* |\n|-|-|-|-|-|-|-|\n| New+delete | 8 | 16384 | 1401400us | 377400us | 1 | 1 |\n| Buddy | 8 | 16384 | 69200us | 76000us | 20.2514 | 4.96579 |\n| Paged pool | 8 | 16384 | 11900us | 7800us | 117.765 | 48.3846 |\n| New+delete | 16 | 8192 | 314200us | 196700us | 1 | 1 |\n| Buddy | 16 | 8192 | 33900us | 36800us | 9.26844 | 5.34511 |\n| Paged pool | 16 | 8192 | 5200us | 3800us | 60.4231 | 51.7632 |\n| New+delete | 64 | 4096 | 229300us | 140800us | 1 | 1 |\n| Buddy | 64 | 4096 | 20500us | 18500us | 11.1854 | 7.61081 |\n| Paged pool | 64 | 4096 | 4200us | 1900us | 54.5952 | 74.1053 |\n| New+delete | 256 | 2048 | 300200us | 112700us | 1 | 1 |\n| Buddy | 256 | 2048 | 7900us | 9300us | 38 | 12.1183 |\n| Paged pool | 256 | 2048 | 2100us | 1000us | 142.952 | 112.7 |\n| New+delete | 1024 | 2048 | 747100us | 252400us | 1 | 1 |\n| Buddy | 1024 | 2048 | 8300us | 9400us | 90.012 | 26.8511 |\n| Paged pool | 1024 | 2048 | 2100us | 1000us | 355.762 | 252.4 |\n| New+delete | 4096 | 1024 | 1076400us | 392400us | 1 | 1 |\n| Buddy | 4096 | 1024 | 3400us | 4800us | 316.588 | 81.75 |\n| Paged pool | 4096 | 1024 | 700us | 500us | 1537.71 | 784.8 |\n| New+delete | 16384 | 1024 | 2314900us | 847200us | 1 | 1 |\n| Buddy | 16384 | 1024 | 4000us | 4900us | 578.725 | 172.898 |\n| Paged pool | 16384 | 1024 | 800us | 600us | 2893.62 | 1412 |\n| New+delete | 65536 | 512 | 1415900us | 836000us | 1 | 1 |\n| Buddy | 65536 | 512 | 2000us | 2400us | 707.95 | 348.333 |\n| Paged pool | 65536 | 512 | 600us | 300us | 2359.83 | 2786.67 |\n| New+delete | 262144 | 512 | 1743100us | 1647400us | 1 | 1 |\n| Buddy | 262144 | 512 | 2000us | 2500us | 871.55 | 658.96 |\n| Paged pool | 262144 | 512 | 500us | 300us | 3486.2 | 5491.33 |\n| New+delete | 1048576 | 256 | 1237200us | 1008100us | 1 | 1 |\n| Buddy | 1048576 | 256 | 1300us | 1300us | 951.692 | 775.462 |\n| Paged pool | 1048576 | 256 | 200us | 200us | 6186 | 5040.5 |\n| New+delete | 4194304 | 256 | 1268900us | 948800us | 1 | 1 |\n| Buddy | 4194304 | 256 | 1200us | 1400us | 1057.42 | 677.714 |\n| Paged pool | 4194304 | 256 | 300us | 100us | 4229.67 | 9488 |\n\n*\\* over new+delete of the same size and count.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuvrik%2Fallocator_benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuvrik%2Fallocator_benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuvrik%2Fallocator_benchmark/lists"}