MCPcopy
hub / github.com/rs/xid / BenchmarkNewString

Function BenchmarkNewString

id_test.go:262–268  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

260}
261
262func BenchmarkNewString(b *testing.B) {
263 b.RunParallel(func(pb *testing.PB) {
264 for pb.Next() {
265 _ = New().String()
266 }
267 })
268}
269
270func BenchmarkFromString(b *testing.B) {
271 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…