Skip to content

Instantly share code, notes, and snippets.

@bontscho
bontscho / benchmark.js
Created May 22, 2018 21:47
benchmark for pixelmatch
const fs = require('fs');
const path = require('path');
const Benchmark = require('benchmark');
const suite = new Benchmark.Suite;
const PNG = require('pngjs').PNG,
matchAfter = require('./'),
matchBefore = require('./index.1.js');
const img1 = readImage(process.argv[2]);
const img2 = readImage(process.argv[3]);