Skip to content

Add stress tests for all three memory allocators.#442

Draft
ehpor wants to merge 2 commits into
developfrom
feature/allocator_tests
Draft

Add stress tests for all three memory allocators.#442
ehpor wants to merge 2 commits into
developfrom
feature/allocator_tests

Conversation

@ehpor

@ehpor ehpor commented May 21, 2026

Copy link
Copy Markdown
Collaborator

These tests do stress tests on all three memory allocators using N threads and performs M iterations with:

  • a chance to allocate memory and store the handle in the buffer
  • a chance to deallocate this memory
  • a chance to allocate memory permanently
  • a chance to move allocated memory to other threads

This tests semi-realistic memory allocation patterns and threading behavior. Tests functions are mostly written in C++ to avoid GIL threading issues hiding potential issues with our memory allocator implementation.

TODO:

  • Check whether asserts are strict enough.

Code partially generated using Kimi K2.6.

@ehpor ehpor self-assigned this May 21, 2026
@ehpor ehpor added the infrastructure Anything concerning CI, testing, linting or repo infrastructure. label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Anything concerning CI, testing, linting or repo infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant