News for hackers. Stuff that matters.
Re:Ask HN: Internet magically gets faster when opening speed... by mlyle on Sunday April 17, 2022 @04:21PM (#31064094)
Interesting. I consistently get garbage results with speedtest-cli (across multiple machines and network connections) and good results with speedtest's own.

On the pi, I suspect it's running out of CPU--

    real 0m9.877s
    user 0m2.737s
     sys 0m5.595s
But that doesn't explain the systemic problem.
Re:Ask HN: Internet magically gets faster when opening speed... by mmastrac on Sunday April 17, 2022 @04:27PM (#31064146)
The Pi is definitely limited in terms of CPU. This is a fairly old, but beefy Xeon chip on my unraid box. Might be native vs Python code on ARM?
Re:Ask HN: Internet magically gets faster when opening speed... by mlyle on Sunday April 17, 2022 @04:32PM (#31064199)
Yup, native vs. Python would explain a lot on the Pi, but I've also seen this on my big Threadripper machine here and on my Hetzner server in Virginia.

I'd assumed it was just something intrinsic.

On the other hand: speedtest's own thing uses multiple parallel connections. So if you have low amounts of loss that prevent one TCP connection from going super fast, it'll do better on speedtest than speedtest-cli.

Thanks for the help/info. Something to spend more time understanding at some point in the future.

edit: Just noticed that the Hetzner server in VA geolocates wrong and chooses servers in Kansas.

Re:Ask HN: Internet magically gets faster when opening speed... by vitus on Sunday April 17, 2022 @05:20PM (#31064617)
> edit: Just noticed that the Hetzner server in VA geolocates wrong and chooses servers in Kansas.

This is a common failure mode of geolocation, especially as it pertains to cloud providers. The databases can guess which country the IP address corresponds to, but not anything more (and as such, they default to something in the middle of the country).

https://en.wikipedia.org/wiki/Geographic_center_of_the_Unite...

Geolocation data tends to be worse for cloud providers for whatever reason (I believe it's a combination of differing Internet footprint characteristics, as well as IP aggregation mismatch on behalf of the geolocation database).

(Also see https://en.wikipedia.org/wiki/Null_Island for another common geolocation placeholder)

Re:Ask HN: Internet magically gets faster when opening speed... by mmastrac on Sunday April 17, 2022 @04:35PM (#31064231)
No worries.. best of luck with that. As a total aside, fast.com is giving me 420mbps which should be impossible given my wifi setup. :/
Re:Ask HN: Internet magically gets faster when opening speed... by mlyle on Sunday April 17, 2022 @04:37PM (#31064246)
fast.com tends to be 10-20% high for me versus what goes by at the router.