Skip to content

Instantly share code, notes, and snippets.

const Benchmark = require('benchmark');
const _ = require('lodash');
const suite = new Benchmark.Suite;
const itemsLen = 10000;
const arr = new Array(itemsLen);
const precision = 3;
suite.add('Promise.all', () => promiseAllLoop())
.add('Native Loop', () => nativeLoop())