A traceroute shows the path from your computer to another address, hop by hop, with a round-trip time for each hop. On Windows the command is tracert. On a Mac or Linux it is traceroute. Each line is a router that answered, or a star where one did not. The times are milliseconds, the same unit as ping.
It does not measure how much data fits on the line. A path can have a low delay and a small Mbps, or a high delay and a huge Mbps. What a browser speed test measures is the Mbps test. Traceroute is the map of delay. How to run a ping test is the single-destination version, without the hops in between.
How to read the lines
The first hop is usually your router, and it should answer in a couple of milliseconds. If hop 1 is already slow or missing, the problem is inside the house: Wi-Fi, or the router itself. Later hops are the provider and the networks beyond. A jump that starts at the first provider hop and stays high the rest of the way points outside the house. A jump that appears only at the last hop points at the site you asked for, or at the last network, not at your plan.
Stars in the middle are common. Some routers do not answer these probes and still pass normal traffic. Read the hop after the stars before you call the path broken. What is a good ping is how to judge the final number once you trust the path.
What it will not settle
It will not tell you that a plan is "300 Mbps." Run the speed test on Ethernet for that. It will not explain a Wi-Fi dead room if you run it from a laptop that is already on a weak hop: hop 1 looks bad because the laptop can barely reach the router. Plug in, then trace. Does the test server location matter? is the matching warning for speed tests: a far destination makes the delay look worse without saying the line into the house is small.
Common questions
Does a star or timeout mean the site is down?
Not always. Many routers refuse the probe and still forward real traffic. A timeout in the middle with a healthy final hop is a router that stayed quiet.
Can traceroute show my Mbps?
No. It shows delay along a path. Use a speed test for Mbps.