macOS has its own speed test built in, no website needed. I find that nice when I am on a laptop with a terminal open anyway.
networkQuality
It reports upload and download capacity and responsiveness, which shows how bad your connection gets while it is busy. It needs macOS 12 Monterey or later, and it tests against Apple’s servers. Add -s to run the tests one after the other instead of at the same time.
Further reading: networkQuality manual page (Apple)