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

Function BenchmarkEasyJsonMedium

benchmark/benchmark_medium_payload_test.go:503–515  ·  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 Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A Verifies: STK-REQ-007 MCDC STK-REQ-007: N/A reqproof:proptest:skip performance benchmark;

(b *testing.B)

Source from the content-addressed store, hash-verified

501// MCDC STK-REQ-007: N/A
502// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
503func BenchmarkEasyJsonMedium(b *testing.B) {
504 for i := 0; i < b.N; i++ {
505 lexer := &jlexer.Lexer{Data: mediumFixture}
506 data := new(MediumPayload)
507 data.UnmarshalEasyJSON(lexer)
508
509 nothing(data.Person.Name.FullName, data.Person.Github.Followers, data.Company)
510
511 for _, el := range data.Person.Gravatar.Avatars {
512 nothing(el.Url)
513 }
514 }
515}

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
UnmarshalEasyJSONMethod · 0.45

Tested by

no test coverage detected