MCPcopy Create free account
hub / github.com/egonelbre/exp / BenchmarkArray

Function BenchmarkArray

bench/vector/mini/vector_test.go:85–92  ·  view source on GitHub ↗
(t *testing.B)

Source from the content-addressed store, hash-verified

83}
84
85func BenchmarkArray(t *testing.B) {
86 a, b := Array{1, 1, 1}, Array{1, 1, 1}
87 for i := 0; i < t.N; i++ {
88 a = a.Add(b)
89 }
90 runtime.KeepAlive(a)
91 runtime.KeepAlive(b)
92}
93func BenchmarkArray2(t *testing.B) {
94 a, b := Array{1, 1, 1}, Array{1, 1, 1}
95 for i := 0; i < t.N; i++ {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.95

Tested by

no test coverage detected