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

Function BenchmarkParseInt

bytes_test.go:125–130  ·  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

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

Callers

nothing calls this directly

Calls 1

parseIntFunction · 0.85

Tested by

no test coverage detected