Apples to apples, C++/QT will always beat the shit out of JS/Electron.
The real problem here is computers HAVE gotten too fast, so lazy shit like electron is acceptable as 'good-enough'