Skip to content

test: add read-after-write latency measurement for #38#47

Open
0xlavar wants to merge 2 commits into
spool-labs:mainfrom
0xlavar:feat/read-after-write-latency-benchmark
Open

test: add read-after-write latency measurement for #38#47
0xlavar wants to merge 2 commits into
spool-labs:mainfrom
0xlavar:feat/read-after-write-latency-benchmark

Conversation

@0xlavar

@0xlavar 0xlavar commented Jul 1, 2026

Copy link
Copy Markdown

Adds an initial read-after-write latency measurement test using the TestEnv harness.

Motivation

Per the latest comment by @zfedoran on #38:

"If you’re looking to contribute, this boils down to reducing read latency after a write. We haven’t started optimizing yet, even just identifying issues would be helpful"

This PR provides a concrete baseline measurement (~8µs currently) as the first step.

Changes

  • Added measure_read_after_write_latency test in test/src/lib.rs
  • Commented out missing tools/ entries in Cargo.toml files

How to Test

cargo test --package tape-test measure_read_after_write_latency -- --nocapture

Happy to expand this with real Tape Replay write + read operations or component-level timing based on feedback.

CC #38

0xlavar added 2 commits July 1, 2026 06:36
- Basic timing using TestEnv harness
- Addresses the read latency after write opportunity
- Provides baseline data (currently ~8µs)

Refs: spool-labs#38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant