function sumofsins1(n::Integer)
r = 0
for i in 1:n
r += sin(3.4)
end
return r
end
function sumofsins2(n::Integer)
r = 0.0
for i in 1:n
r += sin(3.4)
end
return r
end
function sumofsins3(n::Integer)
r = 0.0
Thank you. Problem solved.
1 Mayıs 2015 Cuma 17:58:35 UTC-4 tarihinde John Myles White yazdı:
Re. perf changes: there was a regression since 2013. There's an issue
here: https://github.com/JuliaLang/julia/issues/9942
-- John
On Friday, May 1, 2015 at 12:10:37 PM UTC-7, Kenan KARAGÜL
That post is from 2013. Output from @time has gotten more detailed since
then to include the note about GC when it occurs.
Not sure about the performance difference--comparing across both different
machines and Julia versions is going to be tricky.
On Friday, May 1, 2015 at 2:10:37 PM UTC-5,