(b *testing.B)
| 944 | } |
| 945 | |
| 946 | func BenchmarkExtendReuseSlice(b *testing.B) { |
| 947 | sizes := []int{5, 20, 8, 50, 12, 100, 30, 200, 15, 80, 3, 150, 10, 40, 7, 300, 25, 60, 90, 10} |
| 948 | for i := 0; i < b.N; i++ { |
| 949 | |
| 950 | var buf []Attribute |
| 951 | for _, sz := range sizes { |
| 952 | buf = extendReuseSlice(sz, buf) |
| 953 | } |
| 954 | _ = buf |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | var benchmarkTrace *Trace |
| 959 |
nothing calls this directly
no test coverage detected