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

Function BenchmarkInterpolation

search/interpolation_test.go:17–23  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

15}
16
17func BenchmarkInterpolation(b *testing.B) {
18 testCase := generateBenchmarkTestCase()
19 b.ResetTimer() // exclude time taken to generate test case
20 for i := 0; i < b.N; i++ {
21 _, _ = Interpolation(testCase, i)
22 }
23}

Callers

nothing calls this directly

Calls 2

InterpolationFunction · 0.85

Tested by

no test coverage detected