https://github.com/cpp20120/alloc
Lock-Free Object Allocator with QSBR Memory Reclamation
https://github.com/cpp20120/alloc
Last synced: 5 months ago
JSON representation
Lock-Free Object Allocator with QSBR Memory Reclamation
- Host: GitHub
- URL: https://github.com/cpp20120/alloc
- Owner: cpp20120
- License: mit
- Created: 2025-09-17T19:51:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-17T19:56:22.000Z (6 months ago)
- Last Synced: 2025-09-17T21:46:30.941Z (6 months ago)
- Language: C++
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
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