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: 32.137847ms Matrix creation: 600.281µ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: 603.152646ms Matrix creation: 436.23µs