[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

netstat performance



I notice that the following two invocations of netstat have
drastically different execution times:

netstat

netstat -n


When you just use numerical addresses, it executes almost instantly,
but with the domain names and whatever you call those logical names
for the port numbers, such as 'www', it takes quite while ( 5-10
seconds).

Not a big deal, but just made me think.  Surely the name resolution
isn't that costly is it?


Reply to: