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

Function BenchmarkBinaryToDecimal

conversion/binarytodecimal_test.go:41–46  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

39}
40
41func BenchmarkBinaryToDecimal(b *testing.B) {
42 b.ReportAllocs()
43 for i := 0; i < b.N; i++ {
44 _, _ = BinaryToDecimal("1100100")
45 }
46}

Callers

nothing calls this directly

Calls 1

BinaryToDecimalFunction · 0.85

Tested by

no test coverage detected