Skip to content

Instantly share code, notes, and snippets.

View sokra's full-sized avatar

Tobias Koppers sokra

View GitHub Profile
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
var testArray = [];
for (var s = 0; s < 5000; s++) {
testArray.push(Math.floor(Math.random() * 100));
}
console.log('Testing caching')