I gave speedtest-cli a shot on my manjarao #pinephone and #librem5. Interesting results. In my C++ compilation test, the L5 won. On these, the pinephone comes out well ahead. There was a good bit of variability in the tests, so I’m presenting it as a graph.
Both are attached to my 2.4GHz Wi-Fi network. I couldn't get the pine to "see" my 5GHz network so I didn't bother with it here to make things more comparable.
I’m no kind of network engineer or testing lab. These are my experiences, ymmv