Docs
Performance
Document Size

Document Size

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.

Settingsloro-snapshotloro-updatediamond-typeyrsautomerge
Default (no options)273561251352281042226973292742
gcxx203564159921x
compress13245910572415072391777129062
gc & compressxx10624271033x

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

Loro also supports a shallow snapshot encoding format with gc capabilities by truncating the history. For details, see the doc. If truncated from the latest version, the result will be:

Settingsloro-shallow-snapshot
Default63352
compress54517