Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created January 18, 2011 14:35
Show Gist options
  • Save aheckmann/784501 to your computer and use it in GitHub Desktop.
Save aheckmann/784501 to your computer and use it in GitHub Desktop.
var start = new Date;
var times = 2;
var i = 0;
for (; i < times; ++i) {
var num = 1000;
while (num--) {
require('./'+num);
}
}
console.log('total %dms', new Date - start);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment