2

Can't find it in the result->summarize() data... any ideas how to fetch the time directly? It seems like there is something like long resultAvailableAfter( TimeUnit unit ) see there: Cypher query execution time with Neo4j java driver can i access a similar on php?

Hendrik
  • 93
  • 6

1 Answers1

1

A common way to do this in PHP is to get the time() before you execute the query, and then get the time() after you execute the query, and then just find the difference between them. It won't be strictly query execution time since there is some overhead from your connection, etc...but should be very close.

See: http://php.net/manual/en/function.time.php

Matt King
  • 189
  • 8
  • already tried that way, but got huge impact on the time from connection and receiving results, compared to the displayed time in the cyper console in the web interface... since i want to compare against arango, which provides real execution time, it doesn't solve my problem :( – Hendrik Jul 10 '17 at 14:51
  • 1
    When I want to compare, I prefer to create my own monitoring tool with the `time()` method, than to compare the query execution time from of two products. With that I'm sure to compare two identical units/things. – logisima Jul 10 '17 at 15:23
  • This might be what you are looking for: https://stackoverflow.com/a/23378256/493739 – Matt King Jul 10 '17 at 17:06