MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / BenchmarkString

Function BenchmarkString

math/matrix/string_test.go:87–96  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

85}
86
87func BenchmarkString(b *testing.B) {
88 // Create a sample matrix for benchmarking
89 rows := 100
90 columns := 100
91 m := matrix.New(rows, columns, 0) // Replace with appropriate values
92
93 for i := 0; i < b.N; i++ {
94 _ = m.String()
95 }
96}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
StringMethod · 0.80

Tested by

no test coverage detected