Last active
May 27, 2020 17:41
-
-
Save teivah/f0f3be81d891334ed4a0309e9c179805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func BenchmarkMatrixReversedCombination(b *testing.B) { | |
matrixA := createMatrix(matrixLength) | |
matrixB := createMatrix(matrixLength) | |
for n := 0; n < b.N; n++ { | |
for i := 0; i < matrixLength; i++ { | |
for j := 0; j < matrixLength; j++ { | |
matrixA[i][j] = matrixA[i][j] + matrixB[j][i] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment