-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Use a faster comparator for image diff #9431
Description
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:
- https://github.com/ant-design/ant-design
- https://github.com/ant-design/x
- https://github.com/antvis/G
- https://github.com/antvis/GPT-Vis
- https://github.com/Shopify/react-native-skia
- https://github.com/vega/vega
- https://github.com/apexcharts/apexcharts.js
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status