| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import fletch.*; | 5 import fletch.*; |
| 6 | 6 |
| 7 import java.io.FileInputStream; | 7 import java.io.FileInputStream; |
| 8 import java.io.FileNotFoundException; | 8 import java.io.FileNotFoundException; |
| 9 import java.io.IOException; | 9 import java.io.IOException; |
| 10 | 10 |
| 11 import java.util.List; | 11 import java.util.List; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 start = System.currentTimeMillis(); | 155 start = System.currentTimeMillis(); |
| 156 for (int i = 0; i < CALL_COUNT; i++) { | 156 for (int i = 0; i < CALL_COUNT; i++) { |
| 157 countTreeNodes(generated); | 157 countTreeNodes(generated); |
| 158 } | 158 } |
| 159 end = System.currentTimeMillis(); | 159 end = System.currentTimeMillis(); |
| 160 us = (end - start) * 1000.0 / CALL_COUNT; | 160 us = (end - start) * 1000.0 / CALL_COUNT; |
| 161 System.out.println("Counting (Java) took " + us + " us."); | 161 System.out.println("Counting (Java) took " + us + " us."); |
| 162 } | 162 } |
| 163 } | 163 } |
| OLD | NEW |