The most frequently cited reason for respondents' most recent raise was performance. Receiving another job offer was cited slightly less frequently than earning a promotion as a factor in raises. Frequency of raises. Amount of raise. Reasons for raise.
Bonuses seem to be tied to company performance more than individual performance.
Tables 23-25 give a portrait of bonus distribution. Percent of respondents awarded bonuses. Amount of bonus. Reasons for bonus. In addition to profit sharing and stock options, project completion bonuses, project milestone bonuses, and retention bonuses are all desired far more than they're granted.