Skip to content

Instantly share code, notes, and snippets.

View pushkar-g's full-sized avatar
🎯
Focusing

Pushkar Gupte pushkar-g

🎯
Focusing
View GitHub Profile
@pushkar-g
pushkar-g / Benchmarking.js
Created June 19, 2014 05:08
Benchmark.js
function benchmark() {
var suite = new Benchmark.Suite;
suite.add('elementByID', function () {
document.getElementById('some-id')!=undefined;
})
.add('elementByClass', function () {
document.getElementsByClassName('some-class')!=undefined;
})
// add listeners
.on('cycle', function (event) {