Skip to content

Commit

Permalink
remove grouped since it is not real world testing
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed May 20, 2024
1 parent e8904db commit 7699a0e
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions iradix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1884,29 +1884,6 @@ func generateDataset(size int) []string {
return dataset
}

func BenchmarkGroupedOperations(b *testing.B) {
dataset := generateDataset(datasetSize)
art := New[int]()

b.ResetTimer()
for i := 0; i < b.N; i++ {
// Insert
for _, key := range dataset {
art.Insert([]byte(key), i)
}

// Search
for _, key := range dataset {
art.Get([]byte(key))
}

// Delete
for _, key := range dataset {
art.Delete([]byte(key))
}
}
}

func BenchmarkMixedOperations(b *testing.B) {
dataset := generateDataset(datasetSize)
art := New[int]()
Expand Down

0 comments on commit 7699a0e

Please sign in to comment.