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

Function BenchmarkRho

math/pollard_test.go:72–79  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

70}
71
72func BenchmarkRho(b *testing.B) {
73 for i := 0; i < b.N; i++ {
74 _, err := PollardsRhoFactorization(big.NewInt(535), DefaultPolynomial)
75 if err != nil {
76 return
77 }
78 }
79}

Callers

nothing calls this directly

Calls 1

PollardsRhoFactorizationFunction · 0.85

Tested by

no test coverage detected