DEV Community


Discussion on: Why Go for Node.js Developers

jorinvo profile image
jorin Author • Edited

Easiest way to see the resource usage of a process is to open Activity Monitor on Mac or Task Manager on Windows.

The memory usage of Node.js is surprising low if you think about how much the environment is doing for you. The runtime translates your code to actual machine code on the fly and while your program is running, it is still being analyzed and optimized so that hot code paths become more efficient and so on.
Everything you have with a compiled language like Go in the separate build step, the VM in a language like JavaScript is doing for you at runtime.

Hope this helps a bit. If you are interested there are many interesting talks and articles about the internals of JavaScript (and other) engines, for example this one: