test: add 24-hour ShardedPulseMap soak example - #14
Open
VedantMadane wants to merge 1 commit into
Open
Conversation
Add examples/soak_test.rs with configurable --duration (default 24h), 8 writers + 4 readers, TTL churn, periodic stats, sentinel integrity checks, monotonic eviction_count, capacity bounds, and Linux RSS growth detection. Short --duration values enable fast local/CI smoke runs. Fixes ddsha441981#8 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
examples/soak_test.rs— a long-running endurance test forShardedPulseMapunder sustained concurrent load.What it does
--duration <secs>(default 24 hours; short values for local/CI smoke)ShardedPulseMap<u64, u64>with 4096 buckets/shard andset_ttl(10_000)len() <= capacity(), monotoniceviction_count(), sentinel key integrity, Linux RSS growth ≤ 10%How to run
\\�ash
Full 24h
cargo run --release --example soak_test --features std
Quick smoke
cargo run --release --example soak_test --features std -- --duration 5
1-hour CI-style run
cargo run --release --example soak_test --features std -- --duration 3600
\\
Test plan
cargo build --example soak_test --features stdcargo run --example soak_test --features std -- --duration 3→ PASSED (~4.3M ops)Fixes #8