Skip to content

Instantly share code, notes, and snippets.

View JuhQ's full-sized avatar
💭
wat 🦀

Juha Tauriainen JuhQ

💭
wat 🦀
  • Helsinki, Finland
View GitHub Profile
@JuhQ
JuhQ / performance.js
Created December 22, 2014 22:32
js snippet for checking node module performance
var execute = function(src, times) {
var times = times || 10;
var code = require(src);
var results = [];
for(var i = 0; i < times; i++) {
var result = {};
result.iteration = i;
var startTime = new Date().getTime();