(n int, b *testing.B)
| 20 | } |
| 21 | |
| 22 | func benchmarkBubbleSort(n int, b *testing.B) { |
| 23 | list := utils.GetArrayOfSize(n) |
| 24 | for i := 0; i < b.N; i++ { |
| 25 | sort(list) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func BenchmarkBubbleSort100(b *testing.B) { benchmarkBubbleSort(100, b) } |
| 30 | func BenchmarkBubbleSort1000(b *testing.B) { benchmarkBubbleSort(1000, b) } |
no test coverage detected