code: @Benchmark
    public int constructAndIter(ConstructAndIterState state)
    {
      int dataSize = state.dataSize;
      int[] data = state.data;
      MutableBitmap mutableBitmap = factory.makeEmptyMutableBitmap();
      for (int i = 0; i < dataSize; i++) {
        mutableBitmap.add(data[i]);
      }
      ImmutableBitmap bitmap = factory.makeImmutableBitmap(mutableBitmap);
      return iter(bitmap);
    }
docs: Benchmark of cumulative cost of construction of an immutable bitmap and then iterating over it. This is a pattern
  from realtime nodes, see {@link org.apache.druid.segment.StringDimensionIndexer#fillBitmapsFromUnsortedEncodedKeyComponent}.
  However this benchmark is yet approximate and to be improved to better reflect actual workloads of realtime nodes.