v0.2.0: test infra + bench harness + measured perf claims - #6
Merged
Conversation
added 2 commits
May 1, 2026 15:25
- node:test unit suite (8 tests, ~400ms): makeKey, set/get round-trip, hit_count update, TTL expiry, upsert, purgeExpired Infinity no-op, stats - bench/run.js: latency + storage harness, JSON results with machine metadata - CI workflow: real npm test job, publish-dry-run gated on test green - README: replace unmeasured "5-15x fewer" with measured "~0.05ms reads" - CHANGELOG: backfill 0.1.4 + 0.1.5, add 0.2.0 entry
… 22.5 22.5 added node:sqlite behind --experimental-sqlite flag. Unflagged since 23.x, stable since 24.x. Local test runs (Node 24.14) passed but CI (node-version: '22.5') failed with ERR_UNKNOWN_BUILTIN_MODULE because neither helpers.js nor cache.js passes the flag. Bump CI to match the actual supported runtime; separate issue covers package.json engines.
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
Phase A milestone per coordinated implementation plan: ship credibility (numbers + tests) before Phase B-D ops/docs work.
node:testunit tests coveringcache.jspublic API; built-in runner, zero new devDepsnpm run benchreports p50/p95/p99 latency for write/read hit/read miss/list, plus storage growth. JSON results saved with full machine metadata (CPU, RAM, OS, Node version, commit) for reproducible before/after comparisons. Canonical baseline committed tobench/baselines/; ephemeral runs go to gitignoredbench/results/.npm testjob replaces misnamedpublish --dry-run-only workflow; publish-dry-run gated on tests greenBench numbers (Ryzen 3900X, Node v24.14, win32, N=10000)
Storage: ~1.9KB per entry on 1KB payload (overhead ~ 900B for key + indexes + WAL).
Test plan
🤖 Generated with Claude Code