Skip to content

Use Buffer.equals as initial comparison for performance gain #38

@bontscho

Description

@bontscho

hi there,

we are currently using your lib in our pipeline for visual regression tests. to decrease our runtime significantly we added an initial Buffer.equals to compare if the image buffers are identical (so we don't need to compare pixel by pixel with threshold).

our scenario: taking screenshots via puppeteer and then comparing against a reference set of images

i am happy to file a PR if this library is still maintained

thanks for your work and kind regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions