3 ms·
It depends heavily on the (micro-)benchmark used. Rust is able to avoid allocations and de-allocations in many areas where C programmers would manually use all
by timClicks 10y ago
It depends heavily on the (micro-)benchmark used.
Rust is able to avoid allocations and de-allocations in many areas where C programmers would manually use alloc and free. I must admit though, that's less relevant to scientific programming, where the heaviest work is mainly matrix matrix multiplication and the sizes of everything is known in advance.
Without reading through the paper, I expect work on the Rust/Fortran side is being vectorized and/or being kept in L1/L2 caches, whereas the C and Go compilers don't use SIMD instructions and/or are generating code that triggers cache misses.