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

Function BenchmarkParseBytesUnsafe

uuid_test.go:663–670  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

661}
662
663func BenchmarkParseBytesUnsafe(b *testing.B) {
664 for i := 0; i < b.N; i++ {
665 _, err := parseBytesUnsafe(asBytes)
666 if err != nil {
667 b.Fatal(err)
668 }
669 }
670}
671
672// parseBytesCopy is to benchmark not using unsafe.
673func parseBytesCopy(b []byte) (UUID, error) {

Callers

nothing calls this directly

Calls 1

parseBytesUnsafeFunction · 0.85

Tested by

no test coverage detected