For what it's worth it run in about 3-4 seconds on my computer on latest v0.4.
CPU : Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz On Sunday, May 8, 2016 at 10:33:14 AM UTC+2, Patrick Kofod Mogensen wrote: > > As for the v0.5 performance (which is horrible), I think it's the boxing > issue with closure https://github.com/JuliaLang/julia/issues/15276 . > Right? > > On Sunday, May 8, 2016 at 10:29:59 AM UTC+2, STAR0SS wrote: >> >> You are using a lot of vectorized operations and Julia isn't as good as >> matlab is with those. >> >> The usual solution is to devectorized your code and to use loops (except >> for matrix multiplication if you have large matrices). >> >