perf: benchmark and optimize large-doc write and sync paths#113
Draft
marcus-pousette wants to merge 19 commits intomainfrom
Draft
perf: benchmark and optimize large-doc write and sync paths#113marcus-pousette wants to merge 19 commits intomainfrom
marcus-pousette wants to merge 19 commits intomainfrom
Conversation
BenchmarksTriggered by
Status: ✅ <5% change | 🟡 5–10% | 🟠 10–30% | 🔴 >30% Artifacts:
|
Collaborator
Author
|
/bench |
2e7e8e2 to
e9842be
Compare
5d14cae to
178c469
Compare
95df399 to
7d7c893
Compare
This reverts commit 5c35bc2.
c983b86 to
f890a7a
Compare
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.
This PR improves large-doc write and sync performance and adds benchmark coverage to measure those paths repeatably. The main runtime work is in the Postgres backend, with supporting benchmark instrumentation in the playground and benchmark runners.
Runtime changes
treecrdt_replica_metastores per-replica max countersBenchmark and test support
@treecrdt/postgres-napiruntime-only and move fixture helpers under@treecrdt/postgres-napi/testing--postgres-urlRepresentative results
eu.sync.emhub.net10kstructure-only:266ms10kpayload subtree:242ms100kpayload subtree:210msto227mseu.sync.emhub.net:189.9msus.sync.emhub.net:241.3mssync.emhub.net:254.8ms1mtrees1.8ms, insert sibling3.5ms, move leaf47.7ms0.82ms, insert sibling1.23ms, move leaf2.20ms0.13ms, insert sibling0.23ms, move leaf0.81msNot in scope here: public-host
1mseeding and remote re-sync results.