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

Function BenchmarkNewV6WithTime

version6_test.go:69–79  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

67}
68
69func BenchmarkNewV6WithTime(b *testing.B) {
70 b.RunParallel(func(pb *testing.PB) {
71 for pb.Next() {
72 now := time.Now()
73 _, err := NewV6WithTime(&now)
74 if err != nil {
75 b.Fatal(err)
76 }
77 }
78 })
79}
80
81func contains(t *testing.T, arr []string, str string) bool {
82 t.Helper()

Callers

nothing calls this directly

Calls 1

NewV6WithTimeFunction · 0.85

Tested by

no test coverage detected