by throwawaymath · 7y ago · 0 comments
REPL:
julia> @time print(1)
1 0.000031 seconds (7 allocations: 272 bytes)
Bash: $ time ./julia -e 'print(1)'
1
real 0m0.184s
user 0m0.156s
sys 0m0.168s
So yes, that’s a slow launch time. If you use Julia in a shell script and it’s starting up Julia on each calculation it will be brutally slow. Five orders of magnitude slower, in this case.It's a bit annoying it's true, a well featured language with dynamic/repl appeal that is not in the ms launch time. But alas..