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

Function BenchmarkUUID_New

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

Source from the content-addressed store, hash-verified

744}
745
746func BenchmarkUUID_New(b *testing.B) {
747 b.RunParallel(func(pb *testing.PB) {
748 for pb.Next() {
749 _, err := NewRandom()
750 if err != nil {
751 b.Fatal(err)
752 }
753 }
754 })
755}
756
757func BenchmarkUUID_NewPooled(b *testing.B) {
758 EnableRandPool()

Callers

nothing calls this directly

Calls 1

NewRandomFunction · 0.85

Tested by

no test coverage detected