func BenchmarkMemoryUsage(b *testing.B) {
	b.StopTimer()
	bitmaps := make([]*Bitmap, 0, 10)
	incr := uint32(1 << 16)
	max := uint32(1<<32 - 1)
	for x := 0; x < 10; x++ {
		rb := NewBitmap()
		var i uint32
		for i = 0; i <= max-incr; i += incr {
			rb.Add(i)
		}
		bitmaps = append(bitmaps, rb)
	}
	var stats runtime.MemStats
	runtime.ReadMemStats(&stats)
	fmt.Printf("\nHeapInUse %d\n", stats.HeapInuse)
	fmt.Printf("HeapObjects %d\n", stats.HeapObjects)
	b.StartTimer()
}
go test -bench BenchmarkMemoryUsage -run -
package roaring
import (
	"bytes"
	"fmt"
	"math/rand"
	"runtime"
	"testing"
	"github.com/willf/bitset"
)
var c uint