4 ms·
That chart is quite strange. Why would JS start take 500ms (on my system it's 80ms) and be slower to start with more dependencies? Maybe it's because the bulk
by akvadrako 8y ago
That chart is quite strange. Why would JS start take 500ms (on my system it's 80ms) and be slower to start with more dependencies?
Maybe it's because the bulk of the time is just copying the deployment artifact to the local disk. In that case the overriding factor is the size of the package.
- icebraining 8y agoIf you require() the libraries at the top, as it seems to be common in Node applications, it makes sense that more dependencies add to the cold start time.