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

Function BenchmarkCompare

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

Source from the content-addressed store, hash-verified

351}
352
353func BenchmarkCompare(b *testing.B) {
354 k1 := New()
355 k2 := New()
356
357 for i := 0; i != b.N; i++ {
358 Compare(k1, k2)
359 }
360}
361
362func BenchmarkSort(b *testing.B) {
363 ids1 := [101]KSUID{}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
CompareFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…