public synchronized void addAll(T... nodes) {
        for (T node : nodes) {
            addInternal(node, defaultReplication);
        }
        refreshTable();
    }
@Test
    @Ignore("Helper test for performance, no assertion")
    public void speed() {
        Map<String, Integer> data = new CopyOnWriteMap.Hash<>();
        for (int i = 0; i < 1000; i++) {
            data.put("node" + i, 100);
        }
        data.put("tail", 100);

        long start = System.currentTimeMillis();
        for (int j = 0; j < 10; j++) {
            ConsistentHash<String> b = new ConsistentHash<>();
            b.addAll(data);
        }

        System.out.println(System.currentTimeMillis() - start);
    }