Unix and Linux speedup ping command

Fig.01: Unix and Linux speedup ping command

Fig.01: Unix and Linux speedup ping command

To speed up ping command use the following syntax:
## speed up option ##
ping -c 5 -n -i 0.2 -W1 www.google.com

Sample outputs:

PING www.google.com (216.58.213.164) 56(84) bytes of data.
64 bytes from 216.58.213.164: icmp_req=1 ttl=55 time=8.70 ms
64 bytes from 216.58.213.164: icmp_req=2 ttl=55 time=8.82 ms
64 bytes from 216.58.213.164: icmp_req=3 ttl=55 time=8.46 ms
64 bytes from 216.58.213.164: icmp_req=4 ttl=55 time=8.79 ms
64 bytes from 216.58.213.164: icmp_req=5 ttl=55 time=8.68 ms
--- www.google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 804ms rtt min/avg/max/mdev = 8.466/8.694/8.825/0.151 ms

The following is without ping speedup options:
ping -c 5 www.google.com
Sample outputs:

PING www.google.com (216.58.213.132) 56(84) bytes of data.
64 bytes from lhr26s01-in-f4.1e100.net (216.58.213.132): icmp_req=1 ttl=55 time=7.00 ms
64 bytes from lhr26s01-in-f4.1e100.net (216.58.213.132): icmp_req=2 ttl=55 time=6.95 ms
64 bytes from lhr26s01-in-f4.1e100.net (216.58.213.132): icmp_req=3 ttl=55 time=6.96 ms
64 bytes from lhr26s01-in-f4.1e100.net (216.58.213.132): icmp_req=4 ttl=55 time=6.98 ms
64 bytes from lhr26s01-in-f4.1e100.net (216.58.213.132): icmp_req=5 ttl=55 time=6.93 ms
--- www.google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 6.937/6.969/7.005/0.108 ms

Note down the difference between ping statistics time.

Examples and usage: HowTo: Speedup ping and traceroute Command Responses under Linux / Unix