Comments (7)
Thanks for the report, @mweidner037, this is really helpful. Your results seem vaguely plausible given the performance traces I've seen lately in the browser. (As an aside the Chrome Dev Tools have really excellent performance analysis tools.)
We've been looking at similar problems and have a few patches in the work but getting independent performance testing is always very welcome!
from automerge-repo.
I've been looking into this - There are two issues related to marks causing you to call Automerge.marks()
when you shouldn't need to. I will have a PR soon that fixes this. As for the automerge-repo falling down - I saw the same behavior but just by updating to a more recent version this seemed to go away. I was hoping you could confirm
"server": {
"dependencies": {
- "@automerge/automerge": "2.1.2-alpha.0",
- "@automerge/automerge-repo": "1.0.2",
- "@automerge/automerge-repo-network-websocket": "1.0.2",
+ "@automerge/automerge": "2.1.5",
+ "@automerge/automerge-repo": "1.0.12",
+ "@automerge/automerge-repo-network-websocket": "1.0.12",
"@collabs/collabs": "0.13.4",
from automerge-repo.
Also I made an even more lightweight version of the automerge-server.js
and haven't seen it go over 1% CPU usage. Not very useful as it's just an echo server but happy to share if you like.
from automerge-repo.
Also I made an even more lightweight version of the automerge-server.js and haven't seen it go over 1% CPU usage. Not very useful as it's just an echo server but happy to share if you like.
Sure, I can change automerge
mode to use that.
As for the automerge-repo falling down - I saw the same behavior but just by updating to a more recent version this seemed to go away.
I'll try this out when I can.
Aside: When you are running locally, you can make it more stressful (as if there were more users) by increasing the rate of edits. Here is the relevant constant: https://github.com/composablesys/collabs-nsdi/blob/master/client/src/scenarios/all_active.ts#L16
Probably 30 edits/second (value 33 ms) with 3-4 users will make things interesting. Remote latency P95 should be the most sensitive indicator.
from automerge-repo.
Made a PR that adds a fast marksAt()
method so you dont need to walk the whole text field on every insert
from automerge-repo.
Something you could add to the benchmark that would be hugely valuable (and I was having trouble doing while reading your harness code) would be to have a server flamegraph added to the stats gathered maybe via the 0x
package.
from automerge-repo.
Related Issues (20)
- Add docs and example for adding authentication to the sync server
- 1.0 Release Blog Post
- Automerge-Repo in a SharedWorker under Vite loses "connect". HOT 1
- Ephemeral message scope HOT 1
- Websocket Version bugs
- Leave means leave HOT 2
- New document sync and save HOT 8
- Delete protocol HOT 1
- Unable to use automerge-repo in Deno: Property 'on' missing from 'Repo'
- Handle unavailable files with no storage/peers better HOT 7
- How should the "unavailable" status interact with network adapter startup? HOT 3
- Storage Snapshots HOT 1
- Storage Snapshots HOT 1
- Lose extra diff HOT 10
- apps under /examples don't seem to work HOT 4
- can't load automerge repo HOT 4
- Allow Svelte's `document` store to explicitely receive the `repo` HOT 4
- On failure, and what to do about it HOT 2
- Cover reconnection bug with a test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automerge-repo.