3 ms·
As I say in the post, I'm not sure it's safe to say "I have _n_ number of modules, therefore my overhead is the same as the '_n_ modules' benchmark." For runtim
by nolanl 10y ago
As I say in the post, I'm not sure it's safe to say "I have _n_ number of modules, therefore my overhead is the same as the '_n_ modules' benchmark." For runtime perf it's about the total number of require()s; the "_n_ modules" benchmark is more reflective of the bundle size cost.
E.g. consider the m.reddit.com example - 1050 modules, yet an order of magnitude slower than the "1000 modules" example. I might need to follow up with more benchmarks to reduce the confusion. ^_^;;
- nolanl 10y agoOh yeah and also - "modules" !== "packages." ;) Not sure many folks are really counting the number of _modules_ in their code as well as packages.