MCPcopy
hub / github.com/gin-gonic/gin / BenchmarkBytesConvBytesToStrRaw

Function BenchmarkBytesConvBytesToStrRaw

internal/bytesconv/bytesconv_test.go:102–106  ·  view source on GitHub ↗

go test -v -run=none -bench=^BenchmarkBytesConv -benchmem=true

(b *testing.B)

Source from the content-addressed store, hash-verified

100// go test -v -run=none -bench=^BenchmarkBytesConv -benchmem=true
101
102func BenchmarkBytesConvBytesToStrRaw(b *testing.B) {
103 for b.Loop() {
104 rawBytesToStr(testBytes)
105 }
106}
107
108func BenchmarkBytesConvBytesToStr(b *testing.B) {
109 for b.Loop() {

Callers

nothing calls this directly

Calls 1

rawBytesToStrFunction · 0.85

Tested by

no test coverage detected