BenchmarkMathCos is slower because the standard library `math.Cos` calculates a more accurate value.
(b *testing.B)
| 40 | |
| 41 | // BenchmarkMathCos is slower because the standard library `math.Cos` calculates a more accurate value. |
| 42 | func BenchmarkMathCos(b *testing.B) { |
| 43 | for i := 0; i < b.N; i++ { |
| 44 | stdmath.Cos(180) |
| 45 | } |
| 46 | } |
nothing calls this directly
no outgoing calls
no test coverage detected