Skip to content

talbii/allocators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allocators

Just some experimants with allocators. Do not use this in production! (unless?)

Compile with C++20 compilers (except clang which for some reason has yet to implement execution policies...)

This repository is accompanied by a blog post!

Results

Below are the results of running on my laptop (Apple M1 Pro), allocating 1e5 integers:

std::allocator<int>:
    Average: 0.221357ms (N = 10000)
      Total: 2213.57ms
        Min: 0.21ms
        Max: 0.392ms


aggressive_allocator<int, 65,536>:
    Average: 0.223744ms (N = 10000)
      Total: 2237.44ms
        Min: 0.211ms
        Max: 0.331ms


static_allocator<int, 32MB>:
    Average: 0.229698ms (N = 10000)
      Total: 2296.98ms
        Min: 0.211ms
        Max: 0.32ms


global_static_allocator<int> (256MB):
    Average: 0.22709ms (N = 100)
      Total: 22.709ms   # kind of irrelevant as N is smaller
        Min: 0.215ms
        Max: 0.243ms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages