Skip to content

v1.0.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Oct 06:10
· 4 commits to main since this release

RunDB Native v1.0.1: Optimization, Benchmarking & Test Suite Expansion

RunDB Native v1.0.1 introduces targeted engine optimizations, extended test suites, and streamlined test coverage for high-throughput in-memory caching and Redis-compatible workloads.


⚡ What's Changed

🚀 Performance & Memory Optimizations

  • Fast-Path String to Integer Parsing: Leveraged std::from_chars to accelerate numeric unboxing and inline scalar storage directly inside RunDBObject variants, avoiding redundant heap allocations.
  • Cache-Conscious Data Structures: Refined allocation patterns across the custom run_alloc engine, zero-heap SDS (SSO $\le$ 22 bytes), adaptive IntSet, and 32-element chunked QuickList nodes.
  • Lock-Free Atomic Counters: Relaxed atomic operations on LRU clock cycles and keyspace telemetry to minimize cross-core bus contention during heavy pipelines.

🧪 Tests & Verification Suite

  • Comprehensive Test Expansion: Added unit and integration coverage across core subsystems via ./build/rundb_tests, reaching 57 unit tests validating command dispatch, AOF persistence, and passive/active expiration loops.
  • Subsystem Test Filtering: Streamlined CTest execution and added targeted subsystem filtering (--filter <name>) for faster local testing and CI cycles.
  • High-Throughput Benchmarks: Updated native C++ benchmarking binaries (rundb_benchmark) to test TCP network pipelining and direct in-memory engine operations across multi-thousand client loads.

📦 Getting Started

1. Build from Source

# Clone the repository
git clone [https://github.com/DarshanAguru/rundb_native.git](https://github.com/DarshanAguru/rundb_native.git)
cd rundb_native

# Build release target using CMake presets
cmake --preset release
cmake --build --preset build-release

2. Run Test Suite

# Execute native test suite
./build/rundb_tests

# Run with ctest
ctest --test-dir build --output-on-failure

3. Launch Server & Connect

# Start server (default: port 7379)
./build/release/rundb --port 7379

# Connect via standard redis-cli
redis-cli -p 7379 PING

Full Changelog: https://github.com/DarshanAguru/rundb_native/commits/v1.0.1