diff -r 6d25ccbb3cf2 -r 84917f2e16cd progs/catastrophic.java --- a/progs/catastrophic.java Tue Dec 05 00:34:14 2017 +0000 +++ b/progs/catastrophic.java Thu Dec 07 12:04:31 2017 +0000 @@ -9,12 +9,12 @@ public static void main(String[] args) { //we always run all the tests twice -> warmup of the JVM - for (int runs = 0; runs < 2; runs++) { + for (int runs = 0; runs < 3; runs++) { Pattern pattern = Pattern.compile("(a*)*b"); // Run from 5 to 28 characters - for (int length = 5; length < 28; length++) { + for (int length = 70000; length < 70001; length++) { // Build input of specified length String input = ""; @@ -27,7 +27,7 @@ } System.out.println(length + " " + input + ": " - + ((System.nanoTime() - start) / 2000000000d) + + ((System.nanoTime() - start) / 3000000000d) + "s"); } }