This is handy:

Apple has quietly added a new tool in macOS Monterey for measuring your device’s Internet connectivity quality. You can simply call the executable networkQuality

Source: The secret of the macOS Monterey network quality tool | DanPetrov

Miraz Jordan @Miraz