Two tools, two scenarios
Network speed has two distinct measurements. LAN throughput — how fast can two devices on your network actually talk? Use iperf3. Internet bandwidth — how much can you download from a public server? Use speedtest-cli or just curl a known-fast file.
iperf3 — the LAN throughput truth
iperf3 needs both ends. Run it as a server on one machine (iperf3 -s), as a client on another (iperf3 -c server-ip). It pumps as much data as the path can carry and reports the rate. This is how you confirm that your 10GbE actually works as 10GbE.