The recommended way to use automerge is the next API 1. Update the benchmarks to use this API. This required two changes:
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.
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
The recommended way to use automerge is the
next
API 1. Update the benchmarks to use this API. This required two changes:string
in the place of theautomerge.Text
type for theinitialDoc.text
field. This is because inautomerge.next
thestring
is represented as a sequence CRDT in the document.setMap
which checks if the value that is being inserted into a map is astring
and if so converts it to aRawString
, which is not a sequence CRDT. This makes the comparison with yjs more like-for-likeThis partially addresses #21