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

Function TemplateBenchmarkExtendedGCD

math/gcd/extendedgcd_test.go:44–48  ·  view source on GitHub ↗
(b *testing.B, f testExtendedFunction)

Source from the content-addressed store, hash-verified

42}
43
44func TemplateBenchmarkExtendedGCD(b *testing.B, f testExtendedFunction) {
45 for i := 0; i < b.N; i++ {
46 f(98, 56)
47 }
48}
49
50func BenchmarkExtendedGCDRecursive(b *testing.B) {
51 TemplateBenchmarkExtendedGCD(b, ExtendedRecursive)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected