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

Function BenchmarkFFJsonLarge

benchmark/benchmark_large_payload_test.go:107–120  ·  view source on GitHub ↗

* github.com/pquerna/ffjson */ 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 comparable

(b *testing.B)

Source from the content-addressed store, hash-verified

105// MCDC STK-REQ-004: N/A
106// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
107func BenchmarkFFJsonLarge(b *testing.B) {
108 for i := 0; i < b.N; i++ {
109 var data LargePayload
110 ffjson.Unmarshal(largeFixture, &data)
111
112 for _, u := range data.Users {
113 nothing(u.Username)
114 }
115
116 for _, t := range data.Topics.Topics {
117 nothing(t.Id, t.Slug)
118 }
119 }
120}
121
122/*
123 github.com/mailru/easyjson

Callers

nothing calls this directly

Calls 1

nothingFunction · 0.85

Tested by

no test coverage detected