6 typedRoaring "github.com/anacrolix/torrent/typed-roaring"
9 func BenchmarkUndirtiedChunksIter(b *testing.B) {
10 var bitmap typedRoaring.Bitmap[RequestIndex]
11 a := undirtiedChunksIter{
12 TorrentDirtyChunks: &bitmap,
13 StartRequestIndex: 69,
17 for i := 0; i < b.N; i++ {
18 a.Iter(func(chunkIndex chunkIndexType) {