Matrix edges 10000 x 10000 = 100000000 1. Size of data [100000000]uint16: 190 MB compare int with float: 2. Size of data [100000000]float64: 762 MB 3. Size of type [100000000]float64: 24 Byte 4. Real size of [100000000]float64: 762 MB (2. + 3.) Slice creation: 30.332321ms Matrix creation: 376.224µs Matrix edges 20000 x 20000 = 400000000 1. Size of data [400000000]uint16: 762 MB compare int with float: 2. Size of data [400000000]float64: 3051 MB 3. Size of type [400000000]float64: 24 Byte 4. Real size of [400000000]float64: 3051 MB (2. + 3.) Slice creation: 390.028413ms Matrix creation: 326.484µs