340 Gets Terrible Gas Mileage

Get an engine vacuum reading. You may not have enough initial timing. That's a very common problem when people put a non stock cam in one. Start with the basics. Make sure the engine is in good tune and go from there. Read the plugs. See what they look like.