cURL / Mailing Lists / curl-users / Single Mail


curl -w time measurements

From: Jason Strongman <>
Date: Fri, 30 Jan 2015 09:49:30 -0600

are there any known issues with the curl -w time measurements?

i noticed that the curl measurements are a bit higher than whats seen
in a single transaction's corresponding system trace output(strace) or
packet capture(tcpdump).

for example, in one of my tests, curl reports name lookup as 28msec.

time_namelookup 0.028

when looking at the system trace output and packet capture, the name
lookup from start to finish only took 18msec. where is curl getting
the additional 10msec?
this occurs on all my tests. curl time_namelookup values are much
higher than whats seen in a pcap/system-trace-output.
actually all curl time measurements are much higher than whats seen in
a corresponding pcap.

please advise

List admin:
Received on 2015-01-30