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

Function BenchmarkArrayStruct

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

Source from the content-addressed store, hash-verified

108}
109
110func BenchmarkArrayStruct(t *testing.B) {
111 a, b := ArrayStruct{1, 1, 1}, ArrayStruct{1, 1, 1}
112 for i := 0; i < t.N; i++ {
113 a = a.Add(b)
114 }
115 runtime.KeepAlive(a)
116 runtime.KeepAlive(b)
117}
118
119func BenchmarkArrayStruct3(t *testing.B) {
120 a, b := ArrayStruct{1, 1, 1}, ArrayStruct{1, 1, 1}

Callers

nothing calls this directly

Calls 1

AddMethod · 0.95

Tested by

no test coverage detected