Skip to content
/ Alloc Public

Lock-Free Object Allocator with QSBR Memory Reclamation(just for learn not production use) If you need lockfree alloc use mimalloc. if you need fast fine grained locking alloc use tbb:scalable_allocator

License

Notifications You must be signed in to change notification settings

cpp20120/Alloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alloc

Lock-Free Object Allocator with QSBR Memory Reclamation

Benchmarks

OS: Windows 11 CPU: Ryzen 7 6800H RAM: 32gb ddr5 4800MHz Compiler: MSVC x64 /std:c++20 /O2

Single-threaded

Method Time (μs) Speedup
Naive new/delete 632 1x
Custom allocator 271 2.33x

Multi-threaded

Method Time (μs) Speedup
Naive new/delete 5039 1x
Custom allocator 2369 2.13x

Stress Test

  • Total time: 49 ms
  • Objects created/destroyed: 200,566

About

Lock-Free Object Allocator with QSBR Memory Reclamation(just for learn not production use) If you need lockfree alloc use mimalloc. if you need fast fine grained locking alloc use tbb:scalable_allocator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages