return incorrect values
Opened this issue · 2 comments
zachross90210 commented
http://google.com Ping time was 2 ms
https://google.com Ping time was 250 ms
google.com Ping time was 359 ms
and from shell
ping google.com
64 bytes from 74.125.232.229: seq=0 ttl=57 time=56.154 ms
michaelsanford commented
This project is not a true ping. It's more like a time-to-load tester, probably issue from this SO question.
👉 https://github.com/jdfreder/pingjs#caveats
How do those values compare to the ones from your Developer Tools network requests?
alex-shamshurin commented
Because calculation is wrong. It does not take into consideration tcp handshake, http keep-alive, slow start and tcp windows