I get your point, but JS is an order of magnitude faster than Python, they are not in the same league.
A lot of effort went into making it efficient thanks to the web, while python sorta has its hands tied back due to exposing internals that can be readily used from C.