Try comparing these two function: function serial_example() A = [[1.0 1.001];[1.002 1.003] z = A for i in 1:1000000000 z *= A end return z end
function parallel_example() A = [[1.0 1.001]; [1.002 1.003]] z = @parallel (*) for i in 1:1000000000 A end return z end