Test-Connection Performance Better with HostName
问题 Running Test-Connection with an IP address takes considerably longer than running the same command with the server's hostname. However; if I add the -quiet parameter then performance is roughly the same (IP is a fraction faster, as you may expect). Using Measure-Command this anomaly does not show up; presumably some quirk of the output not being displayed. The below code more accurately reflects the anomaly seen: $begin=(get-date).ticks;test-connection '123.45.67.89'; $a=((get-date).ticks -