Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
require('faker') is very slow, takes about 60ms #167
Here's a sample file which reproduces the issue on my machine; I'm running faker 2.0.0
var time = Date.now(); var faker = require('faker'); console.log("Loading faker took " + (Date.now() - time) + "ms"); // For comparison time = Date.now(); var uuid = require('node-uuid'); console.log("Loading uuid took " + (Date.now() - time) + "ms");
What is going on that takes Faker so long to load? When your tests take less than 1ms each to execute, it's odd to see a 60ms slowdown.