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

Function BenchmarkArrayStruct3

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

Source from the content-addressed store, hash-verified

117}
118
119func BenchmarkArrayStruct3(t *testing.B) {
120 a, b := ArrayStruct{1, 1, 1}, ArrayStruct{1, 1, 1}
121 for i := 0; i < t.N; i++ {
122 a = a.Add3(b)
123 }
124 runtime.KeepAlive(a)
125 runtime.KeepAlive(b)
126}

Callers

nothing calls this directly

Calls 1

Add3Method · 0.95

Tested by

no test coverage detected