Skip to content

Instantly share code, notes, and snippets.

@tricknotes
Created December 27, 2012 15:59
Show Gist options
  • Save tricknotes/4389306 to your computer and use it in GitHub Desktop.
Save tricknotes/4389306 to your computer and use it in GitHub Desktop.
var domain = require('domain');
var i, now, count = 10000000;
var source = domain.Domain.toString();
now = Date.now();
for (i = 0; i < count; i++) {
domain.create();
}
console.log('source:\n%s\n- %d ms', source, Date.now() - now);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment