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

Function BenchmarkSin

math/sin_test.go:32–36  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

30}
31
32func BenchmarkSin(b *testing.B) {
33 for i := 0; i < b.N; i++ {
34 algmath.Sin(180)
35 }
36}
37
38// BenchmarkMathSin is slower because the standard library `math.Sin` calculates a more accurate value.
39func BenchmarkMathSin(b *testing.B) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected