dmonad / crdt-benchmarks

A collection of CRDT benchmarks
Other
443 stars 29 forks source link

Update automerge benchmarks to use automerge.next #22

Closed alexjg closed 7 months ago

alexjg commented 7 months ago

The recommended way to use automerge is the next API 1. Update the benchmarks to use this API. This required two changes:

  1. Use a plain string in the place of the automerge.Text type for the initialDoc.text field. This is because in automerge.next the string is represented as a sequence CRDT in the document.
  2. For the same reason add some logic in setMap which checks if the value that is being inserted into a map is a string and if so converts it to a RawString, which is not a sequence CRDT. This makes the comparison with yjs more like-for-like

This partially addresses #21

dmonad commented 7 months ago

Thank you! I updated the benchmark results.