Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
353
func
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
362
func
BenchmarkSort(b *testing.B) {
363
ids1 := [101]KSUID{}
Callers
nothing calls this directly
Calls
2
New
Function · 0.85
Compare
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…