MCPcopy
hub / github.com/buger/jsonparser / BenchmarkUjsonSmall

Function BenchmarkUjsonSmall

benchmark/benchmark_small_payload_test.go:398–409  ·  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

(b *testing.B)

Source from the content-addressed store, hash-verified

396// Verifies: STK-REQ-007
397// MCDC STK-REQ-007: N/A
398func BenchmarkUjsonSmall(b *testing.B) {
399 for i := 0; i < b.N; i++ {
400 json, _ := ujson.NewFromBytes(smallFixture)
401
402 json.Get("uuid").String()
403 json.Get("tz").Float64()
404 json.Get("ua").String()
405 json.Get("st").Float64()
406
407 nothing()
408 }
409}
410
411/*
412 github.com/a8m/djson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…