Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yepitschunked/358fdac4d49fda83b2d9796f0212acd8 to your computer and use it in GitHub Desktop.
Save yepitschunked/358fdac4d49fda83b2d9796f0212acd8 to your computer and use it in GitHub Desktop.
var resolve = require('../resolve');
var performance = require('perf_hooks').performance;
for(var i = 0; i < 10000; i++) {
resolve.sync('./frontend/homes-pdp-marketplace/components/Policies.jsx');
}
console.log(performance.getEntriesByName('parsePkg').reduce((sum, e) => sum + e.duration, 0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment