MCPcopy
hub / github.com/TheAlgorithms/Go / BenchmarkCheckEqualSmallMatrix

Function BenchmarkCheckEqualSmallMatrix

math/matrix/checkequal_test.go:43–50  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

41}
42
43func BenchmarkCheckEqualSmallMatrix(b *testing.B) {
44 m1 := matrix.New(10, 10, 0) // Create a 10x10 matrix with all zeros
45 m2 := matrix.New(10, 10, 0) // Create another 10x10 matrix with all zeros
46
47 for i := 0; i < b.N; i++ {
48 _ = m1.CheckEqual(m2)
49 }
50}
51
52func BenchmarkCheckEqualLargeMatrix(b *testing.B) {
53 size := 1000 // Choose an appropriate size for your large matrix

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
CheckEqualMethod · 0.80

Tested by

no test coverage detected