I would bet that if you replace the chain and cassette that shifting performance would improve greatly. Replacing the cables and especially the cable housings could also be the bigger problem. Derailleurs are actually very dependable for many thousands of miles with reasonable maintenance and if not bent. Flushing out the shifters with WD40 often cures shifting issues and it won't hurt to try that but in your case it's more likely something else.