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

Function BenchmarkBytesEqualStrSafe

bytes_unsafe_test.go:67–71  ·  view source on GitHub ↗

Alternative implementation without using unsafe Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

65// Verifies: SYS-REQ-001
66// MCDC SYS-REQ-001: N/A
67func BenchmarkBytesEqualStrSafe(b *testing.B) {
68 for i := 0; i < b.N; i++ {
69 bytesEqualStrSafe(benchmarkBytes, benchmarkString)
70 }
71}
72
73// Alternative implementation using unsafe, but that is slower than the current implementation
74// Verifies: SYS-REQ-001

Callers

nothing calls this directly

Calls 1

bytesEqualStrSafeFunction · 0.85

Tested by

no test coverage detected