This shows less time because:
1) The total execution time shown EXPLAIN ANALYZEincludes start-up time and stop-start time, as well as the start time of any triggers that are started, but does not include parsing, rewriting, or scheduling time.
2) Since the output is not transmitted to the client, transmission costs and input-output costs are not included.
Attention!
, EXPLAIN ANALYZE, , gettimeofday(). EXPLAIN (ANALYZE TRUE, TIMING FALSE).