(b *testing.B)
| 59 | } |
| 60 | |
| 61 | func BenchmarkDecodeIndexKeyIntHandle(b *testing.B) { |
| 62 | var idxVal []byte |
| 63 | // When handle values greater than 255, it will have a memory alloc. |
| 64 | idxVal = append(idxVal, EncodeHandleInUniqueIndexValue(kv.IntHandle(256), false)...) |
| 65 | |
| 66 | for i := 0; i < b.N; i++ { |
| 67 | DecodeHandleInIndexValue(idxVal) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func BenchmarkDecodeIndexKeyCommonHandle(b *testing.B) { |
| 72 | var idxVal []byte |
nothing calls this directly
no test coverage detected