summaryrefslogtreecommitdiff
path: root/sort/selection_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'sort/selection_test.go')
-rw-r--r--sort/selection_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/sort/selection_test.go b/sort/selection_test.go
new file mode 100644
index 0000000..3881850
--- /dev/null
+++ b/sort/selection_test.go
@@ -0,0 +1,12 @@
+package sort
+
+import (
+ "algorithms/ds"
+ "testing"
+)
+
+func BenchmarkSelection1000(b *testing.B) {
+ a := ds.RandomIntegers(1000, 1000)
+ b.ResetTimer()
+ Selection(a)
+}