aboutsummaryrefslogtreecommitdiff
path: root/test/org/grothoff/RunaboutBenchmark.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/org/grothoff/RunaboutBenchmark.java')
-rw-r--r--test/org/grothoff/RunaboutBenchmark.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/org/grothoff/RunaboutBenchmark.java b/test/org/grothoff/RunaboutBenchmark.java
index fd12b36..18f456d 100644
--- a/test/org/grothoff/RunaboutBenchmark.java
+++ b/test/org/grothoff/RunaboutBenchmark.java
@@ -34,7 +34,7 @@ public class RunaboutBenchmark {
34 34
35 35
36 public static void main(String[] args) { 36 public static void main(String[] args) {
37 final int runs = 50000000; 37 final int runs = 5000000;
38 38
39 Runabout r = new MyRunabout(); 39 Runabout r = new MyRunabout();
40 40
@@ -51,7 +51,6 @@ public class RunaboutBenchmark {
51 long duration1 = end - start; 51 long duration1 = end - start;
52 52
53 53
54
55 Runabout r2 = new Runabout() { 54 Runabout r2 = new Runabout() {
56 public void visit(String s) { 55 public void visit(String s) {
57 56
@@ -76,7 +75,7 @@ public class RunaboutBenchmark {
76 75
77 System.out.println("Runs: " + runs); 76 System.out.println("Runs: " + runs);
78 System.out.println("public: " + duration1); 77 System.out.println("public: " + duration1);
79 System.out.println("AIC: " + duration2); 78 System.out.println("Anon Inner Class: " + duration2);
80 System.out.println("Overhead: " + duration2 / (double) duration1); 79 System.out.println("Overhead: " + duration2 / (double) duration1);
81 80
82 } 81 }