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: 181.173568ms Matrix creation: 487.829µ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: 810.053509ms Matrix creation: 187.913µs