A meaningful small test:

julia> xr = Real[rand() for i = 1:10000];

julia> xf = [rand() for i = 1:10000];

julia> tic(); for n = 1:1000; xr += Real[rand() for i = 1:10000]; end; toc()
elapsed time: 5.51013855 seconds
5.51013855

julia> tic(); for n = 1:1000; xf += [rand() for i = 1:10000]; end; toc()
elapsed time: 0.090389651 seconds
0.090389651

Reply via email to