MCPcopy
hub / github.com/google/uuid / parseBytesCopy

Function parseBytesCopy

uuid_test.go:673–675  ·  view source on GitHub ↗

parseBytesCopy is to benchmark not using unsafe.

(b []byte)

Source from the content-addressed store, hash-verified

671
672// parseBytesCopy is to benchmark not using unsafe.
673func parseBytesCopy(b []byte) (UUID, error) {
674 return Parse(string(b))
675}
676
677func BenchmarkParseBytesCopy(b *testing.B) {
678 for i := 0; i < b.N; i++ {

Callers 1

BenchmarkParseBytesCopyFunction · 0.85

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected