An open API service indexing awesome lists of open source software.

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

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