MCPcopy Create free account
hub / github.com/BaseXdb/basex / run

Method run

basex-tests/src/test/java/org/basex/local/single/ScanTest.java:93–107  ·  view source on GitHub ↗

Performs the specified query; some performance measurements are output and the result is ignored. @param query query to be evaluated

(final String query)

Source from the content-addressed store, hash-verified

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}

Callers 3

elementsWithTextMethod · 0.95
textNotEqualsMethod · 0.95

Calls 3

printlnMethod · 0.95
formatRuntimeMethod · 0.95
queryMethod · 0.45

Tested by

no test coverage detected