2 ms·
> What is the memory footprint of node? What is the startup cost? It's fast enough, and low-overhead enough, that I don't notice any overhead when running my N
by jdlshore 13y ago
> What is the memory footprint of node? What is the startup cost?
It's fast enough, and low-overhead enough, that I don't notice any overhead when running my Node.js build scripts. And really, that's all that matters.
Out of curiosity, I wrote a little script to test it:
#!/usr/local/bin/node
console.log(process.memoryUsage());
And here's the output (memory usage is in bytes):
jshore$ time ./deleteme.js
{ rss: 12660736, heapTotal: 4083456, heapUsed: 2131864 }
real 0m0.055s
user 0m0.043s
sys 0m0.011s