1 I generated two matrices of 1000 x 1000 :
2 As others who pointed out that it works for them normally, I tried Ideone.com for instance, and both pieces give the same speed, so it must be a pro..
3 The first matrix consisted of O and # .