MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / BenchmarkNew

Function BenchmarkNew

math/matrix/matrix_test.go:180–184  ·  view source on GitHub ↗

BenchmarkNew benchmarks the New function.

(b *testing.B)

Source from the content-addressed store, hash-verified

178
179// BenchmarkNew benchmarks the New function.
180func BenchmarkNew(b *testing.B) {
181 for i := 0; i < b.N; i++ {
182 _ = matrix.New(100, 100, 0) // Change the arguments to match your use case
183 }
184}
185
186// BenchmarkNewFromElements benchmarks the NewFromElements function.
187func BenchmarkNewFromElements(b *testing.B) {

Callers

nothing calls this directly

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected