MCPcopy
hub / github.com/openacid/slim / BenchmarkI16Get

Function BenchmarkI16Get

array/int_test.go:952–964  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

950}
951
952func BenchmarkI16Get(b *testing.B) {
953 a, err := array.NewI16([]int32{1, 2, 3}, []int16{1, 2, 3})
954 if err != nil {
955 panic(err)
956 }
957
958 s := int16(0)
959 for i := 0; i < b.N; i++ {
960 r, _ := a.Get(Input)
961 s += r
962 }
963 Output = int64(s)
964}
965
966func TestI32NewErrorArgments(t *testing.T) {
967 var index []int32

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
NewI16Function · 0.92

Tested by

no test coverage detected