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

Function BenchmarkUgirjiSmall

benchmark/benchmark_small_payload_test.go:461–469  ·  view source on GitHub ↗

* github.com/ugorji/go/codec */ 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

459// MCDC STK-REQ-007: N/A
460// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
461func BenchmarkUgirjiSmall(b *testing.B) {
462 for i := 0; i < b.N; i++ {
463 decoder := codec.NewDecoderBytes(smallFixture, new(codec.JsonHandle))
464 data := new(SmallPayload)
465 data.CodecDecodeSelf(decoder)
466
467 nothing(data.Uuid, data.Tz, data.Ua, data.St)
468 }
469}
470
471/*
472 github.com/mailru/easyjson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
CodecDecodeSelfMethod · 0.45

Tested by

no test coverage detected