I have checked in REPL and Pluto notebooks (after each cell the notebook show the execution time). And for me almost every thing timed same. That is why I assumed it to be normal.
(I was using it for trying the codes of the book Statistical Rethinking)
Eg.:
using Plots, StatsKit
# takes about 4 sec
using StatisticalRethinking
# 126 seconds!
begin
pgrid = 0.0:0.01:1.0
prior = ones(length(pgrid))
likelihood1 = pdf.(Binomial.(3,pgrid),3).*prior
likelihood2 = pdf.(Binomial.(4,pgrid),3).*prior
likelihood3 = pdf.(Binomial.(7,pgrid),5).*prior
likelihood4 = pdf.(Binomial.(7,pgrid),5).*prior
likelihood1 = likelihood1./sum(likelihood1)
likelihood2 = likelihood2./sum(likelihood2)
likelihood3 = likelihood3./sum(likelihood3)
likelihood4 = likelihood4./sum(likelihood4)
end
# 15 seconds
begin
plot(pgrid, likelihood1)
plot!(pgrid,likelihood2)
plot!(pgrid,likelihood3)
plot!(pgrid,likelihood4)
end
# 14 seconds
I also asked similar question here first in hopes to get some clue on how to speedup things:
All of the above was running in Pkg
environment StatisticalRethinkingTuring.jl
(Link
Here ). That I initialized as per instructions
cd StatisticalRethinkingTuring.jl
julia
julia >]
(@v1.6) pkg> activate .
(@v1.6) pkg> initialize
julia > using Pluto
julia > Pluto.run()
Julia version 1.6
MacOS Mojave, Intel Corei5 2.5 GHz (2012), 8GB ram