diff -r 3b9496db3fb9 -r 3390e863d796 progs/catastrophic.java --- a/progs/catastrophic.java Tue Sep 26 14:07:29 2017 +0100 +++ b/progs/catastrophic.java Tue Sep 26 14:08:49 2017 +0100 @@ -8,7 +8,7 @@ public class catastrophic { public static void main(String[] args) { - //we always run all the tests twice -> warmup of the JVM + //we always run all the tests twice -> to warmup of the JVM for (int runs = 0; runs < 2; runs++) { Pattern pattern = Pattern.compile("(a*)*b"); @@ -25,7 +25,8 @@ for (int i = 0; i < 2; i++) { pattern.matcher(input).find(); } - + + // Print out time System.out.println(length + " " + input + ": " + ((System.nanoTime() - start) / 2000000000d) + "s");