From 554a7a259f3feefb586374ac5a3b57acc99a4446 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 14 Jul 2020 08:53:17 +0100 Subject: add insertion sort --- sort/insertion_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sort/insertion_test.go (limited to 'sort/insertion_test.go') diff --git a/sort/insertion_test.go b/sort/insertion_test.go new file mode 100644 index 0000000..4b503b8 --- /dev/null +++ b/sort/insertion_test.go @@ -0,0 +1,12 @@ +package sort + +import ( + "algorithms/ds" + "testing" +) + +func BenchmarkInsertion1000(b *testing.B) { + a := ds.RandomIntegers(1000, 1000) + b.ResetTimer() + Insertion(a) +} -- cgit v1.2.3