public void testShotgunUpdate() {
        final Random rand = new Random(12345);
        AMap<Long, Integer> a = EMPTY;

        final int numIters = 100_000;

        for(int i=0; i<numIters; i++) {
            final long key = rand.nextInt (size);
            final boolean add = rand.nextBoolean ();

            if (add) {
                final int value = rand.nextInt ();
                a = a.updated (key, value);
            }
            else {
                a = a.removed (key);
            }
        }
    }
public void testShotgunUpdate ( ) { final Random rand = new Random ( 12345 ) ; AMap < Long , Integer > a = EMPTY ; final int numIters = 100_000 ; for ( int i = 0 ; i < numIters ; i ++ ) { final long key = rand . nextInt ( size ) ; final boolean add = rand . nextBoolean ( ) ; if ( add ) { final int value = rand . nextInt ( ) ; a = a . updated ( key , value ) ; } else { a = a . removed ( key ) ; } } }
@Benchmark