Yes, tight numerical loops are going to benefit from JIT compilation, this isn't surprising. It's also not a very typical workload for either Python or Javascript.
Math-heavy benchmarks are not really representative of what Python is used for. They benefit from things like SIMD and aggressive inlining and fine-grained control over memory layout, etc. If you need that with Python, you can use something like NumPy or implement the hot path with a native language.
At the end of the day code is optimized portable machine state for a given task. The syntax is arbitrary.
More cynically, Python, Ruby, have hurt as many projects as they’ve helped. Their slowness has wasted countless cycles. Now we can quantify it rather than be lost to the hype we felt learning this “magic” to begin with.
With respect, Guido; this feels like a vanity project for a bored retiree, soaking up human effort and real agency. Perhaps you should have simply stayed retired and learn a new hobby.