It sounds like it's a problem with your network if you're getting bad speeds with stock AND custom roms.
Is there a microwave in the way? How many devices on the network? What kind of speeds do you get when you put the phone right next to the router?