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

Function BenchmarkUjsonSmall

benchmark/benchmark_small_payload_test.go:413–424  ·  view source on GitHub ↗

* github.com/mreiferson/go-ujson */ 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

411// MCDC STK-REQ-007: N/A
412// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
413func BenchmarkUjsonSmall(b *testing.B) {
414 for i := 0; i < b.N; i++ {
415 json, _ := ujson.NewFromBytes(smallFixture)
416
417 json.Get("uuid").String()
418 json.Get("tz").Float64()
419 json.Get("ua").String()
420 json.Get("st").Float64()
421
422 nothing()
423 }
424}
425
426/*
427 github.com/a8m/djson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected