summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-09 22:26:27 +0300
committerPaul Buetow <paul@buetow.org>2023-04-09 22:26:27 +0300
commit7aa41c07d15619512a490a0416a504e3200ebf85 (patch)
treeb8589650b7fad90595fd5b6b6ae3aea7a835ca8f
parent66aae6a827fa58eb753f51acb0a4205608f9bf09 (diff)
sleep sort is not being benchmarkedHEADmaster
-rw-r--r--sort/sort_test.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/sort/sort_test.go b/sort/sort_test.go
index fb8870b..b632be8 100644
--- a/sort/sort_test.go
+++ b/sort/sort_test.go
@@ -91,19 +91,6 @@ func TestShuffleSort(t *testing.T) {
}
}
-func BenchmarkSleepSort(b *testing.B) {
- a := ds.NewRandomArrayList[int](10, 10)
- aux := ds.NewArrayList[int](10)
-
- b.Run(fmt.Sprintf("random(%d)", 10), func(b *testing.B) {
- b.ResetTimer()
- for i := 0; i < b.N; i++ {
- copy(aux, a)
- benchResult = Sleep(aux)
- }
- })
-}
-
func BenchmarkInsertionSort(b *testing.B) {
for i := minLength; i <= maxSlowLength; i *= factor {
benchmark(Insertion[int], i, b)