Quake 1 (about 100k lines of C) runs in the browser just fine: https://www.netquake.io/quake
Yes, it's a 30 year old game but the typical CRUD web app doesn't have close to the complexity of quake. Good C++ code is significantly faster than JS, that's true, but JS is also much, much faster than you'd think.