Re:Do You Know How Much Your Computer Can Do in a Second?
by BenjiWiebe on Thursday June 22, 2023 @09:08PM
(#36441471)
FYI the ping utility in linux shows 3 significant figures. On my lan it's reporting 0.156ms avg between two hosts.
[ Parent
| on HN ]
Re:Do You Know How Much Your Computer Can Do in a Second?
by jiggawatts on Friday June 23, 2023 @04:34AM
(#36444286)
150 microseconds is typical, but for reference, Azure gets about 85µs between VMs in proximity placement groups, and I've heard of single-digit latencies with high-end RDMA NICs.
Your ping is 156,000 nanoseconds. You just saw that you can in principle do about 6,400 computations per 30ns, so... that's about 33 million arithmetic calculations per round-trip, within the data centre.
I hope this makes you see every unnecessary network hop in a different light.
PS: It typically takes 3 round-trips to establish a TCP connection, and 5-7 for a TLS connection. A database connection over TLS needs a few more. And then you have load balancers, firewalls, proxies, envoy, ingress, dapr, and, and, and...