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

Function Benchmark_NormalizeSpaceFunc

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

Source from the content-addressed store, hash-verified

261}
262
263func Benchmark_NormalizeSpaceFunc(b *testing.B) {
264 b.ReportAllocs()
265 const strForNormalization = "\t \rloooooooonnnnnnngggggggg \r \n tes \u00a0 t strin \n\n \r g "
266 for i := 0; i < b.N; i++ {
267 _ = normalizespaceFunc(testQuery(strForNormalization))(nil, nil)
268 }
269}
270
271func Benchmark_ConcatFunc(b *testing.B) {
272 b.ReportAllocs()

Callers

nothing calls this directly

Calls 2

normalizespaceFuncFunction · 0.85
testQueryTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…