macOS ◆ xterm-256color ◆ zsh 169 views

Realtime colored graph for ping latency comparison using asciigraph (https://github.com/guptarohit/asciigraph).

command:

unbuffer paste -d, \
  <(ping -i 0.4 google.com | sed -u -n -E 's/.*time=([0-9.]+) ms.*/\1/p') \
  <(ping -i 0.4 duckduckgo.com | sed -u -n -E 's/.*time=([0-9.]+) ms.*/\1/p') \
| asciigraph -r -h 15 -w 60 -sn 2 -sc "blue,red"  -c "Ping Latency Comparison" -sl "Google, DuckDuckGo"

More by rohitgupta

asciigraph 00:20

by rohitgupta

See all