/** Test it with larger number of events and larger number of slots. */
@Test
@Ignore("Takes too long to run")
public void testBloomSetCompare100Mx10M() {
// generally we want about 9-10 bits per entry.
BloomSet b1 = new BloomSet(1000000000, 2); // 1B bits ~= 125MB
BloomSet b2 = new BloomSet(1000000000, 2);
for (int i = 0; i < 100000000; i++) { // 100M "entries"
if (i != 234000)
b1.addInt(i); // drop one that is included in the other set.
if (i <= 10000000)
b2.addInt(i);
// only add the first 10M to the second hash
}
assertFalse(b1.contains(b2)); // b1 doesn't have all b2 has!
assertFalse(b2.contains(b1));
}