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

Function primalityTestBenchmarkHelper

math/prime/prime_test.go:33–37  ·  view source on GitHub ↗
(b *testing.B, f primalityTest)

Source from the content-addressed store, hash-verified

31}
32
33func primalityTestBenchmarkHelper(b *testing.B, f primalityTest) {
34 for i := 0; i < b.N; i++ {
35 f(104729)
36 }
37}
38
39// Miller-Rabin Probabilistic test
40

Calls

no outgoing calls

Tested by

no test coverage detected