You can also use bin/neo4j-shell But in Java use:
> long timeS = System.currentTimeMillis(); ExecutionResult result = executionEngine.execute(query, parameters) IteratorUtil.count(result); > System.out.println(System.currentTimeMillis() - timeS + "ms"); Use Parameters !! Michael > Am 02.03.2015 um 19:22 schrieb Daniele El-Jaick <[email protected]>: > > Hi. > > What is the better way to mesure queries runtime? > At http://localhost:7474/browser/ times vary a lot. > > I tried in Java: > > long timeS = System.currentTimeMillis(); > System.out.println(System.currentTimeMillis() - timeS + "ms"); > System.out.println(resultS.dumpToString()); > > But does not like it works since different queries have the same runtime. > > Thank you > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
