NodeJS / Electron makes pages slower than Chrome

We are building a restaurant POS system with Electron (nodeJS 7.4.0 / Electron 1.6.11). For a POS system, speed and reliability are the two most important requirements, and after spending some time building the application, we are no longer sure that Electron is the right software for us.

Speed ​​seems to be the main issue. For testing purposes, we created an application that only displays 2 welcome pages in the html world without any additional javascript or any other assets. When running on a modern iMac, there is a slight lag between pages and the app running between page loads. On an older PC running Windows 7, it only takes one second to simply switch between these two pages. Load time on mac is 167ms for a blank Hello World page.

Now, by running these 2 pages directly in Chrome browser, the pages load instantly, without any load time and no white flash between page loads. 40ms in the network inspector.

The speed difference is much more important with more complex pages loading Javascript files and images (even if everything is loaded locally)

What is the reason for the longer load times in Electron vs Chrome, what could we be doing wrong?

Screenshot of loading Hello World page on Electron Screenshot of loading Hello World page in Chrome

+3


source to share





All Articles