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

Function BenchmarkGoSimplejsonSetSmall

benchmark/benchmark_small_payload_test.go:336–347  ·  view source on GitHub ↗

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; measures wall-clock time and alloc

(b *testing.B)

Source from the content-addressed store, hash-verified

334// MCDC STK-REQ-007: N/A
335// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
336func BenchmarkGoSimplejsonSetSmall(b *testing.B) {
337 for i := 0; i < b.N; i++ {
338 json, _ := simplejson.NewJson(smallFixture)
339
340 json.SetPath([]string{"uuid"}, "c90927dd-1588-4fe7-a14f-8a8950cfcbd8")
341 json.SetPath([]string{"tz"}, -3)
342 json.SetPath([]string{"ua"}, "server_agent")
343 json.SetPath([]string{"st"}, 3)
344
345 nothing()
346 }
347}
348
349/*
350 github.com/pquerna/ffjson

Callers

nothing calls this directly

Calls 1

nothingFunction · 0.85

Tested by

no test coverage detected