Naive dot product faster in Fortran than in Juila

The problem isn’t the type instability. It’s the promotion type. By using Float64, you lose the ability to use fma, and get halve your vector with.

7 Likes