()
| 53 | } |
| 54 | |
| 55 | public void benchmark() throws IOException { |
| 56 | while (true) { |
| 57 | long start = System.nanoTime(); |
| 58 | readMap(new ByteArrayInputStream(input)); |
| 59 | long end = System.nanoTime(); |
| 60 | System.out.println((end - start) / 1e9); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | public static void main(String[] args) throws Exception { |
| 65 | new MapReader(2000000).benchmark(); |