Performs the specified query; some performance measurements are output and the result is ignored. @param query query to be evaluated
(final String query)
| 91 | * @param query query to be evaluated |
| 92 | */ |
| 93 | private void run(final String query) { |
| 94 | Util.println("Query: " + query); |
| 95 | // warm up |
| 96 | query(query); |
| 97 | final Performance p = new Performance(); |
| 98 | // run query and dump required time |
| 99 | final Performance pl = new Performance(); |
| 100 | for(int l = 0; l < LOOPS; l++) { |
| 101 | query(query); |
| 102 | Util.println(pl); |
| 103 | } |
| 104 | // print average runtime |
| 105 | Util.println(p.formatRuntime(LOOPS)); |
| 106 | Util.println(""); |
| 107 | } |
| 108 | } |
no test coverage detected