We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f4c635 commit efedf3aCopy full SHA for efedf3a
sorts/sorts_test.go
@@ -132,13 +132,13 @@ func BenchmarkBubble(b *testing.B) {
132
}
133
134
135
-//func BenchmarkSelection(b *testing.B) {
136
-// for i := 0; i < b.N; i++ {
137
-// for _, test := range sortTests {
138
-// selectionSort(test.input)
139
-// }
140
141
-//}
+func BenchmarkSelection(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ for _, test := range sortTests {
+ selectionSort(test.input)
+ }
+}
142
143
func BenchmarkInsertion(b *testing.B) {
144
for i := 0; i < b.N; i++ {
0 commit comments