A while back I personally tested performance of C (-O3 compiled to WASM and x64) vs JS for basic math and string operations. Overall results:
Almost no difference for string manipulation little difference for floating-point math big perf difference for integer math
WASM vs JS also saw little differences in performance (except for integer math), in some cases it was slightly slower
There are several reasons to use a lower level language, but raw speed is hardly ever of note. It usually comes down to how good the libs you are using are. As Bun is showing even the stdlib of your runtime can be lackluster