4 ms·
What is the memory footprint of node? What is the startup cost? imho, node as command line makes even less sense then Smalltalk, Java or Mono. Those are heavy
by kephra 13y ago
What is the memory footprint of node? What is the startup cost?
imho, node as command line makes even less sense then Smalltalk, Java or Mono. Those are heavy weight languages that have no place in interactive commandline scripting.
Better choices are the classical languages like Perl or Python, and Lua or awk has even less startup costs.
- 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