MTU is the maximum transmission unit: the largest packet a link will carry, in bytes. On ordinary Ethernet the usual MTU is 1,500 bytes. That number is the long-standing default for Ethernet, not a speed. A speed test can look perfect while a few sites hang, if some packets are larger than a link further along the path will accept and nobody is fragmenting them cleanly.
You rarely need to change it. Set it lower only when a provider, or a VPN, tells you the path cannot carry 1,500, and put it back if that did not fix the symptom. Guessing "9000" because a gamer forum said jumbo frames are faster will break ordinary websites. Jumbo frames are for a network you control end to end, such as a file copy between two machines on your own switch, not for the public internet.
What a wrong MTU looks like
Small pages load. Larger ones stall. A VPN connects and then nothing opens. A speed test, which uses its own traffic, may still report full Mbps. What a browser speed test measures does not include "will every website's packet size fit." Connected but no internet is the wider fault, of which a bad MTU is one uncommon cause.
A gigabit Ethernet port is about the rate, 1,000 Mbps, not the packet size. Do not mix them. Changing MTU does not turn a 100 Mbps plan into a gigabit plan.
Leave it at 1,500 unless you have a reason
If you already changed it, set the router and the computer back to 1,500 and test the site that failed. If it still fails, the MTU was not the cause. Run the speed test only to confirm the line is up. Why speed tests disagree is the more common reason two checks look different, and it is not a packet-size setting.
Common questions
Should I set MTU to the highest number the box allows?
No. Use 1500 on ordinary Ethernet unless a provider has told you their link needs less. Higher than the path allows breaks some sites.
Does a lower MTU make the speed test slower?
A little, in theory, because more packets carry the same data. It is not why a 300 Mbps plan tests at 20. Leave 1500 alone unless something is actually failing.