Re: [julia-users] Pre-compiling?

2015-03-17 Thread Dallas Morisette
this image will take a few minutes. Am 17.03.2015 um 22:24 schrieb Dallas Morisette dtmor...@gmail.com javascript:: 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

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
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