MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / BenchmarkUpperBound

Function BenchmarkUpperBound

search/binary_test.go:80–86  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

78}
79
80func BenchmarkUpperBound(b *testing.B) {
81 testCase := generateBenchmarkTestCase()
82 b.ResetTimer() // this is important because the generateBenchmarkTestCase() is expensive
83 for i := 0; i < b.N; i++ {
84 _, _ = UpperBound(testCase, i)
85 }
86}

Callers

nothing calls this directly

Calls 2

UpperBoundFunction · 0.85

Tested by

no test coverage detected