Function runs much slower from the Julia command prompt

Found the reason. I had turned off depreciation warnings in Juno sometime ago. I wasn’t running Julia repl with the depwarn no flag.