DEV Community

[Comment from a deleted post]
Collapse
 
milesrichardson profile image
Miles Richardson • Edited

It is unsurprising the memory usage was the same. The better comparison would be running N apps simultaneously, both as tabs in Chrome, and as separate applications. So for example, open discord and slack simultaneously in Chrome and record the aggregate memory usage. Then do the same with their desktop apps.

You will find that opening the desktop apps uses significantly more memory, because unlike a browser, where tabs (child processes) share statically linked libraries, each electron app links with its own shared libraries, leading to redundant memory usage at runtime when multiple electron apps are running simultaneously.