If the TPS is not working correctly then power loss can result.
The resistance readings should ascend and descend smoothly. If they don't they try soaking the thing in WD40 or similar over night.
the TPS has a major effect on ignition timing and can either cause very poor performance or can actually blow things up as we've found in the past!