(n int, b *testing.B)
| 20 | } |
| 21 | |
| 22 | func benchmarkShellSort(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 BenchmarkShellSort100(b *testing.B) { benchmarkShellSort(100, b) } |
| 30 | func BenchmarkShellSort1000(b *testing.B) { benchmarkShellSort(1000, b) } |
no test coverage detected