MCPcopy
hub / github.com/pingcap/tidb / BenchmarkDecodeRowKey

Function BenchmarkDecodeRowKey

pkg/tablecodec/bench_test.go:51–59  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

49}
50
51func BenchmarkDecodeRowKey(b *testing.B) {
52 rowKey := EncodeRowKeyWithHandle(100, kv.IntHandle(100))
53 for i := 0; i < b.N; i++ {
54 _, err := DecodeRowKey(rowKey)
55 if err != nil {
56 b.Fatal(err)
57 }
58 }
59}
60
61func BenchmarkDecodeIndexKeyIntHandle(b *testing.B) {
62 var idxVal []byte

Callers

nothing calls this directly

Calls 3

IntHandleTypeAlias · 0.92
EncodeRowKeyWithHandleFunction · 0.85
DecodeRowKeyFunction · 0.85

Tested by

no test coverage detected