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: 44.561699ms Matrix creation: 389.283µ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: 532.825139ms Matrix creation: 346.332µs