From 7699a0ec768526dde1c659fd1ae13d421d15bf98 Mon Sep 17 00:00:00 2001 From: Ashesh Vidyut Date: Mon, 20 May 2024 09:44:28 +0530 Subject: [PATCH] remove grouped since it is not real world testing --- iradix_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/iradix_test.go b/iradix_test.go index e646be5..4d14aa9 100644 --- a/iradix_test.go +++ b/iradix_test.go @@ -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]()