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

Function BenchmarkEasyJsonLarge

benchmark/benchmark_large_payload_test.go:132–146  ·  view source on GitHub ↗

* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparabl

(b *testing.B)

Source from the content-addressed store, hash-verified

130// MCDC STK-REQ-004: N/A
131// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
132func BenchmarkEasyJsonLarge(b *testing.B) {
133 for i := 0; i < b.N; i++ {
134 lexer := &jlexer.Lexer{Data: largeFixture}
135 data := new(LargePayload)
136 data.UnmarshalEasyJSON(lexer)
137
138 for _, u := range data.Users {
139 nothing(u.Username)
140 }
141
142 for _, t := range data.Topics.Topics {
143 nothing(t.Id, t.Slug)
144 }
145 }
146}
147
148/*
149 github.com/a8m/djson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
UnmarshalEasyJSONMethod · 0.45

Tested by

no test coverage detected