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

Function BenchmarkArray3

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

Source from the content-addressed store, hash-verified

99 runtime.KeepAlive(b)
100}
101func BenchmarkArray3(t *testing.B) {
102 a, b := Array{1, 1, 1}, Array{1, 1, 1}
103 for i := 0; i < t.N; i++ {
104 a = a.Add3(b)
105 }
106 runtime.KeepAlive(a)
107 runtime.KeepAlive(b)
108}
109
110func BenchmarkArrayStruct(t *testing.B) {
111 a, b := ArrayStruct{1, 1, 1}, ArrayStruct{1, 1, 1}

Callers

nothing calls this directly

Calls 1

Add3Method · 0.95

Tested by

no test coverage detected