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

Function BenchmarkJasonSmall

benchmark/benchmark_small_payload_test.go:386–397  ·  view source on GitHub ↗

* github.com/bitly/go-simplejson */ 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 benchm

(b *testing.B)

Source from the content-addressed store, hash-verified

384// MCDC STK-REQ-007: N/A
385// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
386func BenchmarkJasonSmall(b *testing.B) {
387 for i := 0; i < b.N; i++ {
388 json, _ := jason.NewObjectFromBytes(smallFixture)
389
390 json.GetString("uuid")
391 json.GetFloat64("tz")
392 json.GetString("ua")
393 json.GetFloat64("st")
394
395 nothing()
396 }
397}
398
399/*
400 github.com/mreiferson/go-ujson

Callers

nothing calls this directly

Calls 1

nothingFunction · 0.85

Tested by

no test coverage detected