Document Size
Local
When encoding a CRDT document, several options can be set:
gc
: This option determines whether to garbage collect (GC) the deleted content during encoding.compress
: This option indicates whether to compress the encoded content.
In this benchmark, we use the Automerge paper dataset.
Source: https://github.com/automerge/automerge-perf/tree/master/edit-by-index (opens in a new tab)
The dataset consists of:
- 182,315 single-character insertion operations
- 77,463 single-character deletion operations
- A total of 259,778 operations
- 104,852 characters in the final document
The first line of settings in the table below indicates configurations without
gc
and compress
.
Settings | loro | diamond-type | yrs | automerge |
---|---|---|---|---|
Default (no options) | 273517 | 281042 | 226973 | 292742 |
gc | x | 203564 | 159921 | x |
compress | 132416 | 150723 | 91777 | 129062 |
gc & compress | x | 106242 | 71033 | x |
The
x
in the table above signifies that the corresponding setting is not supported.