(b *testing.B)
| 30 | } |
| 31 | |
| 32 | func 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. |
| 39 | func BenchmarkMathSin(b *testing.B) { |
nothing calls this directly
no outgoing calls
no test coverage detected