That depends...
You probably have the 2GM20F 18hp Yanmar. If so, MAX RPM is about 3400..BUT you should NEVER run at that speed for more than 30-40 minutes or you take a chance on over-heating and causinng $$$$$ damage. Your power curve is probably best at about 2,750 rpm or so. She'll run all day at that speed and never breathe hard. Also, the hull speed gained at 3400 vs 2750 is negligeable. You can also check your Yanmar owners manual for additional info on that.