The reason why test_1 is slower than test_2 is that you forgot to pass σ as 
a parameter in test_1 definition, so Julia looks for a global variable 
instead. 

In general don't hesitate to add type annotation to your functions, it 
often helps to prevent types problems (e.g. function 
test_1(μ::Float64,Δσ::Float64,σ::Float64) 
).



Reply via email to