lib/uint64set: benchmark AddMulti on small number of items, since this case is the most frequent in lib/storage

This commit is contained in:
Aliaksandr Valialkin 2024-02-15 13:58:06 +02:00
parent 926854b0f3
commit cdac04997a
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -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)