memory-benchmark
Installation
SKILL.md
Memory Benchmarking & Analysis
The perf/memory crate benchmarks memory usage of SQL workloads under WAL and MVCC journal modes. It uses dhat as the global allocator to track every heap allocation, and memory-stats for process-level RSS snapshots.
It also contains a stack-report helper binary for stack-usage investigations.
That binary runs a SQL payload with the stacker feature enabled and captures
turso_stack tracing events in-process, aggregating structured tracing fields
instead of parsing stderr log text.
Location
- Benchmark crate:
perf/memory/ - CodSpeed bench crate:
perf/memory/codspeed/(CI allocation regression tracking) - Analysis script:
perf/memory/analyze-dhat.py - dhat output:
dhat-heap.json(written to CWD after each run)