MCPcopy Index your code
hub / github.com/buger/jsonparser / BenchmarkParseInt

Function BenchmarkParseInt

bytes_test.go:121–126  ·  view source on GitHub ↗

Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

119// Verifies: SYS-REQ-015 [example]
120// MCDC SYS-REQ-015: N/A
121func BenchmarkParseInt(b *testing.B) {
122 bytes := []byte("123")
123 for i := 0; i < b.N; i++ {
124 parseInt(bytes)
125 }
126}
127
128// Alternative implementation using unsafe and delegating to strconv.ParseInt
129// Verifies: SYS-REQ-015 [example]

Callers

nothing calls this directly

Calls 1

parseIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…