@Override
        public void run() {
            for (int i = 0; i < ITERATIONS; ++i) {
                volatileCounter += i;
            }
        }
This just bangs on a shared volatile to give an idea of the basic cost of
sharing a single variable with a memory barrier.
vespajlib/developernotes/ThreadLocalDirectoryBenchmark.java