MCPcopy Create free account
hub / github.com/antchfx/xpath / Benchmark_ConcatFunc

Function Benchmark_ConcatFunc

xpath_function_test.go:271–276  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

269}
270
271func Benchmark_ConcatFunc(b *testing.B) {
272 b.ReportAllocs()
273 for i := 0; i < b.N; i++ {
274 _ = concatFunc(testQuery("a"), testQuery("b"))(nil, nil)
275 }
276}
277
278func Benchmark_GetHashCode(b *testing.B) {
279 // Create a more complex test node that will actually go through the full getHashCode paths

Callers

nothing calls this directly

Calls 2

concatFuncFunction · 0.85
testQueryTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…