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 6fd9331b7f
commit c89f4c97f3
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)