public class TestSpeed {
public static void main(String[] args) {
RandomGenerator rg = new Well44497b();
RandomDataImpl rng = new RandomDataImpl(rg);
Timer timer = new Timer();
timer.begin();
final int MAX_THREADS = Runtime.getRuntime().availableProcessors();
ExecutorService pool = Executors.newFixedThreadPool(MAX_THREADS);
for (int i = 0; i < 10000; i++) {
pool.execute(new RandomPermutationRunnable(rng, 2869, 330));
}