by Bostonian · 5y ago · 0 comments
Looking at https://github.com/arturofburgos/Assessment-of-Programming-L... https://www.matecdev.com/posts/numpy-julia-fortran.html https://github.com/zyth0s/bench_density_gradient_wfn https://github.com/PIK-ICoNe/NetworkDynamicsBenchmarks
people do find Julia to be faster than Python/Numpy, but it is not uniformly faster than Fortran. And Julia's start-up time should not be ignored. Quoting the last link, "In fact the whole Fortran benchmark (300 integrations) finishes roughly in the time it takes to startup a Julia session and import all required libraries (Julia 1.5.1)."
Startup time is much improved in recent Julia versions¹, but is certainly not negligible for short calculations.
https://fortran-lang.discourse.group/t/simple-summation-8x-s...
https://discourse.julialang.org/t/i-just-decided-to-migrate-...
Different tools for different uses cases is the best way to put it.
Using Julia in this case basically means having to rewrite all of the other programs into it and getting rid of eg snakemake or gnu parallel or any number of other very common HPC workflows.
In fact I'd venture that doing a sequence of things many times is just as common an HPC workload than single jobs running for very long times.
Julia itself is not even reproducible: https://github.com/JuliaLang/julia/issues/25900 https://github.com/JuliaLang/julia/issues/34753
This is not to say that the boot time is always a problem, there are plenty of applications in which it doesn't matter at all (as you point out). However that's not always the case (by a long shot) which is why tools like GNU Parallel and snakemake exist.
Real world systems today are going to use a lot of computing resources, such as clusters, GPUs, tensor processing units, multiple cores etc. In such a world, anything that makes that easy to deal with is going to have the performance edge in practice.
Doesn't matter how fast a Fortran program would be in theory, if the Julia program is delivered years ahead of it.