MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BenchmarkIdentifierPool

Function BenchmarkIdentifierPool

pkg/sql/ast/ast_bench_test.go:47–56  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

45}
46
47func BenchmarkIdentifierPool(b *testing.B) {
48 b.Run("GetPutIdentifier", func(b *testing.B) {
49 b.ReportAllocs()
50 for i := 0; i < b.N; i++ {
51 ident := GetIdentifier()
52 ident.Name = "test"
53 PutIdentifier(ident)
54 }
55 })
56}
57
58func BenchmarkBinaryExpressionPool(b *testing.B) {
59 b.Run("GetPutBinaryExpression", func(b *testing.B) {

Callers

nothing calls this directly

Calls 3

GetIdentifierFunction · 0.85
PutIdentifierFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected