Skip to content

Use a faster comparator for image diff #9431

@teimurjan

Description

@teimurjan

Clear and concise description of the problem

As a developer using VItest, I want to have the fastest image diff out of the box.

I've been digging into the image diff problem for a very long time. I made BlazeDiff, which is beating all existing OSS image diffs and is already widely adopted. @blazediff/core (pure JavaScript approach) is ~50% faster than pixelmatch, using the same API and producing the same results. It weighs twice as much, is actively supported, and is type-safe out of the box. You can check the benchmarks here: https://github.com/teimurjan/blazediff/blob/main/BENCHMARKS.md.

Suggested solution

I want to add a new blazediff comparator.

Alternative

As an alternative, I can replace the existing one (due to 1-1 identity in API & results).

Additional context

BlazeDiff is battle-tested and already running visuals for:

Validations

Metadata

Metadata

Assignees

Labels

feat: browserIssues and PRs related to the browser runnerp2-nice-to-haveNot breaking anything but nice to have (priority)

Projects

Status

Approved

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions