progs/re2.scala
changeset 415 4ae59fd3b174
parent 414 065ca01b62ae
child 422 5deefcc8cffa
--- a/progs/re2.scala	Mon Aug 22 23:05:43 2016 +0200
+++ b/progs/re2.scala	Tue Aug 23 12:26:13 2016 +0200
@@ -51,18 +51,18 @@
   (end - start)/(i * 1.0e9)
 }
 
-//for (i <- 1 to 100) {
-//  println(i + ": " + "%.5f".format(time_needed(1, matches(EVIL1(i), "a" * i))))
-//}
+for (i <- 1 to 100) {
+  println(i + ": " + "%.5f".format(time_needed(1, matches(EVIL1(i), "a" * i))))
+}
 
 //a bit bolder test
-for (i <- 1 to 1000 by 50) {
-  println(i + " " + "%.5f".format(time_needed(1, matches(EVIL1(i), "a" * i))))
+for (i <- 1 to 1001 by 50) {
+  println(i + " " + "%.5f".format(time_needed(2, matches(EVIL1(i), "a" * i))))
 }
 
 
-for (i <- 1 to 4002 by 500) {
-  println(i + " " + "%.5f".format(time_needed(4, matches(EVIL2, "a" * i))))
+for (i <- 1 to 4501 by 500) {
+  println(i + " " + "%.5f".format(time_needed(2, matches(EVIL2, "a" * i))))
 }