(b *testing.B)
| 41 | } |
| 42 | |
| 43 | func BenchmarkLoopAdd(b *testing.B) { |
| 44 | b.Run("go", func(b *testing.B) { |
| 45 | for i := 0; i < b.N; i++ { |
| 46 | LoopAdd(1000, 0, 1) |
| 47 | } |
| 48 | }) |
| 49 | b.Run("asm", func(b *testing.B) { |
| 50 | for i := 0; i < b.N; i++ { |
| 51 | AsmLoopAdd(1000, 0, 1) |
| 52 | } |
| 53 | }) |
| 54 | } |
nothing calls this directly
no test coverage detected