Neutralinojs - an alternative to Electron that consumes less memory
Neutralinojs is an open source framework for creating cross-platform HTML / CSS / JS applications. The difference from Electron is that in order to run the application on Neutralinojs, you don’t need to install nodejs and hundreds of dependencies drawn from package.json. Let's compare the Hello World app on Neutralinojs and Electron. You can run the application on Neutralinojs on Windows or Linux (currently MacOS is not supported, but this is planned to be fixed in the near future). I ran on Ubuntu 17.10.
Hello World on Neutralinojs
Download the archive neutralinojs-v1.1.0.zip (support for running completely from the command line in the development plans ) and unpack it.
Run:
./neutralino
On Windows:
neutralino.exe
The application starts and looks like this:
RAM: three processes are created (neutralino, WebKitNetworkProcess, WebKitWebProcess) - in total, they occupy 35 mb.
Volume folders with files on the disk: 5 mb.
Hello World to Electron
We clone the repository with the files and go to the created folder:
git clone https://github.com/electron/electron-quick-start cd electron-quick-start
Volume of cloned files: 344 kb.
We tighten the missing packages:
npm install
The node_modules folder has appeared, the volume of files in the application folder has become: 218 mb.
Run the application:
npm start
The application starts and looks like this:
RAM: I counted six processes (electron-quick-start, three processes electron, node, npm) - in total, they occupy 83 mb.
Total
application | Disk space (mb) | RAM busy (mb) |
---|---|---|
Hello World on Neutralinojs | five | 35 |
Hello World to Electron | 218 | 83 |
The difference in memory consumption, as they say, on the face.
Read more about the Neutralinojs project here .
UPD
I apologize, I was told that HelloWorld on NeutralinoJs takes 9 mb of RAM and one process is created, in fact it takes 35 mb of RAM and three processes are created. Thanks Jouretz for the tip .