Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ BenchmarkSquareRootCalculation
Function
BenchmarkSquareRootCalculation
math/binary/sqrt_test.go:40–44 ·
view source on GitHub ↗
(b *testing.B)
Source
from the content-addressed store, hash-verified
38
}
39
40
func
BenchmarkSquareRootCalculation(b *testing.B) {
41
for
i := 0; i < b.N; i++ {
42
Sqrt(225)
43
}
44
}
45
46
func
BenchmarkMathSqrt(b *testing.B) {
47
for
i := 0; i < b.N; i++ {
Callers
nothing calls this directly
Calls
1
Sqrt
Function · 0.85
Tested by
no test coverage detected