https://github.com/cpp20120/alloc
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
https://github.com/cpp20120/alloc
Last synced: 6 days ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/cpp20120/alloc
- Owner: cpp20120
- License: mit
- Created: 2025-09-17T19:51:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-19T13:12:48.000Z (10 months ago)
- Last Synced: 2026-07-19T12:37:17.055Z (6 days ago)
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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