Skip to content

Conversation

@marcus-pousette
Copy link
Collaborator

@marcus-pousette marcus-pousette commented Jan 3, 2026

Depends on #25 #26 (don't review until these are merged)

Add a browser-safe benchmark core and a Node-only "@treecrdt/benchmark/node" export for writeResult/repoRoot/CLI helpers.

Refactor bench runners (sqlite-node/wa-sqlite/wasm) + wa-sqlite e2e bench specs to use shared timing/workload parsing, and stop tracking generated benchmarks output.

Also move bench-only deps to devDependencies and tighten wa-sqlite statement iteration cleanup.
Expose "@treecrdt/sync/bench" for queued backends + in-memory connected peers, and "@treecrdt/sync/protobuf" for the v0 codec.

Update sqlite-node bench-sync, wa-sqlite e2e sync bench, and sync smoke tests to use the shared helpers (with proper detach/flush).
Extend the treecrdt wa-sqlite Vite plugin to support multiple outDirs and to copy assets once per build.

Use the plugin in the e2e app (including base-path build) and drop the ad-hoc postbuild copy script wiring.
- wa-sqlite opfs helpers now reuse makeDbAdapter (including iter.return cleanup)

- copy-opfs-vfs.mjs and copy-ext.mjs use shared scripts/repo-root.mjs
@Antonov548 Antonov548 marked this pull request as ready for review January 4, 2026 20:42
@marcus-pousette marcus-pousette marked this pull request as draft January 5, 2026 18:30
- Expand TreecrdtAdapter with docId/opRefs/tree/meta methods
- Make createTreecrdtSqliteAdapter return the full adapter (internalize sqlite helpers)
- Simplify sqlite-node/wa-sqlite to create*Api only and reuse cached runner/api per db
- Flesh out wasm-js adapter to satisfy full interface; drop redundant wasm module stub types
- Update benches + fix playground protobuf codec import
@marcus-pousette marcus-pousette marked this pull request as ready for review January 6, 2026 10:04
Copy link
Collaborator

@Antonov548 Antonov548 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👍

@marcus-pousette marcus-pousette merged commit 99ee262 into main Jan 6, 2026
1 check passed
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.

3 participants