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

Function BenchmarkBitwiseLogBase2

math/binary/logarithm_test.go:38–42  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

36}
37
38func BenchmarkBitwiseLogBase2(b *testing.B) {
39 for i := 0; i < b.N; i++ {
40 LogBase2(1024)
41 }
42}
43
44func BenchmarkMathPAckageLogBase2(b *testing.B) {
45 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 1

LogBase2Function · 0.85

Tested by

no test coverage detected