Vitest supports benchmark tests. We should add tests for some key hot paths like:
- Applying a patch to a single document
- Applying mutations/a transaction to multiple documents
- Encoding / transforming a patch to a Sanity API patch
- Rebasing local mutations (maybe covered by applying patch
- Optimizing/squashing set mutations
- Squashing outgoing string patches using diffMatchPatch
- Parsing paths
Vitest supports benchmark tests. We should add tests for some key hot paths like: