MCPcopy
hub / github.com/segmentio/ksuid / BenchmarkString

Function BenchmarkString

ksuid_test.go:339–345  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

337}
338
339func BenchmarkString(b *testing.B) {
340 k := New()
341
342 for i := 0; i != b.N; i++ {
343 _ = k.String()
344 }
345}
346
347func BenchmarkParse(b *testing.B) {
348 for i := 0; i != b.N; i++ {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…