From cdac04997af49da9678d70d04e495bf771955480 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 15 Feb 2024 13:58:06 +0200 Subject: [PATCH] lib/uint64set: benchmark AddMulti on small number of items, since this case is the most frequent in lib/storage --- lib/uint64set/uint64set_timing_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uint64set/uint64set_timing_test.go b/lib/uint64set/uint64set_timing_test.go index ebd981d01..5055fbc59 100644 --- a/lib/uint64set/uint64set_timing_test.go +++ b/lib/uint64set/uint64set_timing_test.go @@ -9,7 +9,7 @@ import ( ) func BenchmarkAddMulti(b *testing.B) { - for _, itemsCount := range []int{1e3, 1e4, 1e5, 1e6, 1e7} { + for _, itemsCount := range []int{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7} { start := uint64(time.Now().UnixNano()) sa := createRangeSet(start, itemsCount) a := sa.AppendTo(nil)