Re: [julia-users] Pre-compiling?

2015-03-17 Thread Dallas Morisette
> change too often, as building this image will take a few minutes. > > > > Am 17.03.2015 um 22:24 schrieb Dallas Morisette >: > > > First, thanks to all those who were patient with me and answered my > newbie performance questions! > > > > I now have m

[julia-users] Pre-compiling?

2015-03-17 Thread Dallas Morisette
First, thanks to all those who were patient with me and answered my newbie performance questions! I now have my Julia simulation running just as fast as my original Fortran code. Needless to say I'm loving Julia! However, when I run it as a script from the command line, the startup (compilatio

Re: [julia-users] Re: Performance - what am I doing wrong?

2015-03-15 Thread Dallas Morisette
Thanks everyone for the suggestions! Here is my updated test: using TimeIt function vec!(x,y) y = x.*x end function comp!(x,y) y = [xi*xi for xi in x] end function forloop!(x,y,n) for i = 1:n y[i] = x[i]*x[i] end end function forloop2!(x,y,n) @simd for i = 1:n

[julia-users] Performance - what am I doing wrong?

2015-03-14 Thread Dallas Morisette
eit y = x.^2 @timeit y = [xi^2 for xi in x] 1000 loops, best of 3: 433.29 µs per loop 100 loops, best of 3: 8.57 ms per loop Thanks! Dallas Morisette