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

Function BenchmarkHasTablePrefix

pkg/tablecodec/tablecodec_test.go:541–546  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

539}
540
541func BenchmarkHasTablePrefix(b *testing.B) {
542 k := kv.Key("foobar")
543 for i := 0; i < b.N; i++ {
544 hasTablePrefix(k)
545 }
546}
547
548func BenchmarkHasTablePrefixBuiltin(b *testing.B) {
549 k := kv.Key("foobar")

Callers

nothing calls this directly

Calls 2

KeyTypeAlias · 0.92
hasTablePrefixFunction · 0.85

Tested by

no test coverage detected