@@ -13,35 +13,35 @@ and random positions of a 10,000-character newly created string.
1313
1414```
1515node benchmarks/json-crdt/strings-short.js
16- json-crdt StringRga type x 228,880 ops/sec ±0.07% (99 runs sampled)
16+ json-crdt StrNode type x 228,880 ops/sec ±0.07% (99 runs sampled)
1717json-crdt x 187,700 ops/sec ±0.17% (98 runs sampled)
1818Y.js x 18,288 ops/sec ±0.19% (100 runs sampled)
1919Automerge x 23.64 ops/sec ±1.54% (44 runs sampled)
20- Fastest is json-crdt StringRga type
20+ Fastest is json-crdt StrNode type
2121```
2222
2323Inserting one 10-char string and deleting one 10-char string range at random
2424positions from a 10,000-char string, which was beforehand already edited 5,000 times.
2525
2626```
2727node benchmarks/json-crdt/strings-long.js
28- json-crdt StringRga type x 54,250 ops/sec ±20.68% (23 runs sampled)
28+ json-crdt StrNode type x 54,250 ops/sec ±20.68% (23 runs sampled)
2929json-crdt x 59,628 ops/sec ±14.39% (32 runs sampled)
3030Y.js x 16,358 ops/sec ±10.79% (45 runs sampled)
3131Automerge x 1,777 ops/sec ±5.97% (76 runs sampled)
32- Fastest is json-crdt,json-crdt StringRga type
32+ Fastest is json-crdt,json-crdt StrNode type
3333```
3434
3535Editing a string at 10 repeating positions with +/- 6 characters random variance
3636from those positions.
3737
3838```
3939node benchmarks/json-crdt/strings-repeat-insert-positions.js
40- json-crdt StringRga type x 8,313 ops/sec ±1.52% (93 runs sampled)
40+ json-crdt StrNode type x 8,313 ops/sec ±1.52% (93 runs sampled)
4141json-crdt x 6,292 ops/sec ±2.22% (77 runs sampled)
4242Y.js x 3,104 ops/sec ±1.40% (78 runs sampled)
4343Automerge x 246 ops/sec ±1.04% (85 runs sampled)
44- Fastest is json-crdt StringRga type
44+ Fastest is json-crdt StrNode type
4545```
4646
4747### Real-world comparisons
@@ -114,22 +114,22 @@ String length: 104852 , Chunk count: 12487
114114JSON CRDT: 134.596ms
115115String length: 104852 , Chunk count: 12487
116116---------------------------------------------
117- JSON CRDT StringRga : 85.254ms
117+ JSON CRDT StrNode : 85.254ms
118118String length: 104852 , Chunk count: 12387
119119---------------------------------------------
120- JSON CRDT StringRga : 86.487ms
120+ JSON CRDT StrNode : 86.487ms
121121String length: 104852 , Chunk count: 12387
122122---------------------------------------------
123- JSON CRDT StringRga : 73.346ms
123+ JSON CRDT StrNode : 73.346ms
124124String length: 104852 , Chunk count: 12387
125125---------------------------------------------
126- JSON CRDT StringRga : 74.109ms
126+ JSON CRDT StrNode : 74.109ms
127127String length: 104852 , Chunk count: 12387
128128---------------------------------------------
129- JSON CRDT StringRga : 73.593ms
129+ JSON CRDT StrNode : 73.593ms
130130String length: 104852 , Chunk count: 12387
131131---------------------------------------------
132- JSON CRDT StringRga : 74.138ms
132+ JSON CRDT StrNode : 74.138ms
133133String length: 104852 , Chunk count: 12387
134134---------------------------------------------
135135diamond-types-node: 58.114ms
0 commit comments