Skip to content

Set up benchmark tests #42

Description

@bjoerge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions