Browser performance is actually very good. Its runtime js engine is heavily optimized. Same for the render. Wether its the dom node render or canvas one. They can be very fast. Certainly possible to write native like apps.
The problem are those libs . In this case electron. There are a zillion parsers and inefficient steps in every app code execution path i see.