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

Function BenchmarkParseBytes

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

Source from the content-addressed store, hash-verified

647}
648
649func BenchmarkParseBytes(b *testing.B) {
650 for i := 0; i < b.N; i++ {
651 _, err := ParseBytes(asBytes)
652 if err != nil {
653 b.Fatal(err)
654 }
655 }
656}
657
658// parseBytesUnsafe is to benchmark using unsafe.
659func parseBytesUnsafe(b []byte) (UUID, error) {

Callers

nothing calls this directly

Calls 1

ParseBytesFunction · 0.85

Tested by

no test coverage detected