Skip to content

aslushnikov/wasm-pixelmatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wasm Pixelmatch

This is an experimental port of https://github.com/mapbox/pixelmatch to Rust and Wasm.

Building:

wasm-pack build --target nodejs

Using:

const { pixelmatch } = require('./pkg/wasm_pixelmatch.js');
// ...

Measurement: comparing red 1280 x 720 image with white 1280 x 720 images; threshold = 0.2, the rest is default.

pixelmatch: 67.481ms
wasm.pixelmatch: 45.518ms

About

rust port of pixelmatch library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published