Skip to content

[wip] db/state: add TestMain with automatic RAM-backed tmpdir for faster tests#19373

Closed
JkLondon wants to merge 13 commits intomainfrom
jklondon-сladetree-tmpramfs

Hidden character warning

The head ref may contain hidden characters: "jklondon-\u0441ladetree-tmpramfs"
Closed

[wip] db/state: add TestMain with automatic RAM-backed tmpdir for faster tests#19373
JkLondon wants to merge 13 commits intomainfrom
jklondon-сladetree-tmpramfs

Conversation

@JkLondon
Copy link
Copy Markdown
Member

@JkLondon JkLondon commented Feb 20, 2026

Sets TMPDIR to a RAM-backed filesystem before running tests, providing ~2x speedup on I/O-heavy MDBX tests (46s -> 22s on full suite). Darwin uses hdiutil RAM disk, Linux uses /dev/shm tmpfs. Falls back gracefully on unsupported platforms (including Windows).

image

Sets TMPDIR to a RAM-backed filesystem before running tests, providing
~2x speedup on I/O-heavy MDBX tests (46s -> 22s on full suite).
Darwin uses hdiutil RAM disk, Linux uses /dev/shm tmpfs.
Falls back gracefully on unsupported platforms (including Windows).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JkLondon
Copy link
Copy Markdown
Member Author

on CI runners actually tests results are the same unfortunately (

@AskAlexSharov AskAlexSharov changed the title db/state: add TestMain with automatic RAM-backed tmpdir for faster tests [wip] db/state: add TestMain with automatic RAM-backed tmpdir for faster tests Feb 21, 2026
@JkLondon JkLondon closed this Feb 21, 2026
@JkLondon JkLondon reopened this Feb 21, 2026
@JkLondon
Copy link
Copy Markdown
Member Author

with added ramfs to exec/tests its even worse(

@AskAlexSharov
Copy link
Copy Markdown
Collaborator

seems @anacrolix did it already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants