Docs
Performance
Document Size

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.

Settingslorodiamond-typeyrsautomerge
Default (no options)273517281042226973292742
gcx203564159921x
compress13241615072391777129062
gc & compressx10624271033x

The x in the table above signifies that the corresponding setting is not supported.