public class BulkTests {
private static final int TRIALS = 15000000;
private static final File DAGFILE = new File("carddag");
public static void runtests(HandEvaluator he, int trials) {
Deck d = new Deck();
long ts = System.currentTimeMillis();
for (int i=0; i < trials; i++) {
if ((i+1) % 1000000 == 0) {
System.out.println((System.currentTimeMillis() - ts) + "ms, evaluated " + ((i+1) / 1000000) + " million hands");
}
d.randomHand();
he.calculateEquivalenceClass(d.getBytes());
}
System.out.println(he.getClass().getName() + ", " + trials + " trials: " + (System.currentTimeMillis() - ts) + "ms elapsed");
}