Cypher result timing is different between online neo4j platform and my fastapi code

when im running

MATCH (n)
WHERE (n:A OR n:B) and n.name starts with 'XYZ'
RETURN n;

on the neo4j online platform it says results Started streaming 1 record after 35ms and completed after 64ms. i got it

but when i run it in my FastAPI code it takes more time to complete. what could be wrong??

this is what I'm getting for the same query

print(consumed_result.result_available_after, consumed_result.result_consumed_after)
>>> 1 3342

Network latency most likely?
The server returns the two times in the query results, and those don't include network latency

Thanks for your response, Michael.

I got that when I'm trying

print(consumed_result.result_available_after, consumed_result.result_consumed_after)
>>> 1 3342

it also includes the network latency but on the platform, it does not have it.

Here are my counter question:-

when I'm trying querying with only single alphabet like

MATCH (n)
WHERE (n:A OR n:B) and n.name starts with 'X' # single alphabet
RETURN n;

then it returns the output way faster ad contradicts the above reason. it's making me so confused or am I missing something?