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

Function BenchmarkEasyJsonSmall

benchmark/benchmark_small_payload_test.go:485–493  ·  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

483// MCDC STK-REQ-007: N/A
484// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
485func BenchmarkEasyJsonSmall(b *testing.B) {
486 for i := 0; i < b.N; i++ {
487 lexer := &jlexer.Lexer{Data: smallFixture}
488 data := new(SmallPayload)
489 data.UnmarshalEasyJSON(lexer)
490
491 nothing(data.Uuid, data.Tz, data.Ua, data.St)
492 }
493}

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
UnmarshalEasyJSONMethod · 0.45

Tested by

no test coverage detected