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

Function BenchmarkIsKrishnamurthyNumber

math/krishnamurthy_test.go:43–51  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

41}
42
43func BenchmarkIsKrishnamurthyNumber(b *testing.B) {
44 for _, test := range retCases() {
45 b.Run(fmt.Sprintf("%d %s a Krishnamurthy Number", test.input, test.outputString), func(b *testing.B) {
46 for i := 0; i < b.N; i++ {
47 IsKrishnamurthyNumber(test.input)
48 }
49 })
50 }
51}

Callers

nothing calls this directly

Calls 2

retCasesFunction · 0.85
IsKrishnamurthyNumberFunction · 0.85

Tested by

no test coverage detected