4 ms·
“ I’m guessing that FORTRAN is faster on small inputs due to the threading overheads, but faster on large inputs because of contention between threads for cache
by melling 6y ago
“ I’m guessing that FORTRAN is faster on small inputs due to the threading overheads, but faster on large inputs because of contention between threads for cache lines and memory bandwidth"
I think the author meant FORTRAN was slower on small inputs?
- estebank 6y agoLook at the graph (or the chart on the left, I had to to understand it): the green and blue lines cross twice, first the FORTRAN version is faster, then the Rust one, then the FORTRAN version again.