function with_keyword(x::Float64=1.1; a::Float64=1.0,b::Float64=2.0,c::Float64=3.0,d::Float64=4.0,e::Float64=5.0)
dx= a*b*c*d*e::Float64
end
Results now are: (slower due to being on my macbook and couldn't change in the ijulia book yet):
@time for i in 1:N with_keyword(1.1) end
@time for i in 1:N Brute() end
@time for i in 1:N assignInF() end
@time for i in 1:N assignFromArray(f) end
@time for i in 1:N assignFromArray(ff) end
@time for i in 1:N packUnpack(p) end
@time for i in 1:N sepParams(a,b,c,d,e) end
@time for i in 1:N globadAssign() end
@time for i in 1:N indexedArray(f) end
@time for i in 1:N immutableType(s) end
@time for i in 1:N indexedArray(ff) end
elapsed time: 1.859415076 seconds (639983688 bytes allocated)
elapsed time: 1.824780742 seconds (639983688 bytes allocated)
elapsed time: 1.815331646 seconds (639983688 bytes allocated)
elapsed time: 2.260640645 seconds (640031792 bytes allocated)
elapsed time: 2.491979295 seconds (800031648 bytes allocated)
elapsed time: 2.498344644 seconds (800030640 bytes allocated)
elapsed time: 2.478566736 seconds (800001228 bytes allocated)
elapsed time: 2.605157314 seconds (799983688 bytes allocated)
elapsed time: 2.365273473 seconds (640021904 bytes allocated)
elapsed time: 2.58554929 seconds (800004984 bytes allocated)
elapsed time: 2.520120133 seconds (800021760 bytes allocated)
Thus, keyword goes close to top, but not sure how to pass a,b,c,d,e to the function using keywords