MCPcopy Create free account
hub / github.com/buger/jsonparser / BenchmarkTokenEnd_Boolean

Function BenchmarkTokenEnd_Boolean

optimization_bench_test.go:74–81  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

72}
73
74func BenchmarkTokenEnd_Boolean(b *testing.B) {
75 data := []byte(`true,`)
76 b.SetBytes(int64(len(data)))
77 b.ResetTimer()
78 for i := 0; i < b.N; i++ {
79 _ = tokenEnd(data)
80 }
81}
82
83// --- end-to-end Get with a string value -------------------------------------
84// Verifies that stringEnd's fast path actually shows up in a realistic call.

Callers

nothing calls this directly

Calls 1

tokenEndFunction · 0.85

Tested by

no test coverage detected