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

Function BenchmarkDecimalToBinary

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

DecimalToBinaryFunction · 0.85

Tested by

no test coverage detected