No. JS is not statically typed and that prevents the vast majority of optimizations and better memory efficiency(native types underneath).
Both perform within a small margin of native code, with the major exceptions of vector instructions that aren't supported by all CPU's
I lost count how many times I have reviewed code where a for loop is used instead of System.arrayCopy().
Or the times I have seen code that my CS data structures teacher would probably give a plain 0, even if done in C.
I'd love to make them code in rust, their inability to write code, to even copy/paste it will save so many maintenance problems.
There is precedent for this in Netty where they use a native poll mode driver and everything else Java, and it performs about as fast as pure C code on Techempower benchmarks