Garnett scored 12 points and passed Jerry West  for 15th on the NBA’s all-time scoring list with a dunk with 6:30 left in the first half. Pierce scored 15 and passed Charles Barkley  for 20th place on the same list with a pair of free throws midway through the third quarters.
Both Pierce and Garnett received a video tribute during separate timeouts and a standing ovation from the Garden crowd.
Riding a two-game losing streak, the Celtics (35-29) raced out to an early 18-12 lead but thanks to six first-quarter turnovers, allowed Toronto to go on a 10-4 run to end the quarter and trailed the Raptors, 22-21, after 12 minutes. Seven Celtics scored in double figures and Shav Randolph was the only Celtic not to score.
The Celtics took better care of the ball in the second quarter and raced out to a 49-40 lead at the half, as Jeff Green  scored 12 points in the quarter. Green finished with a team-best 20 points while Jason Terry  and Jordan Crawford had 12 each off the bench.
THe Celtics quickly built their lead to 13 in the opening minute of the third, 53-40, but the Raptors came back to close to within four, 60-56. The Celtics finally put the game away with a 21-6 run to end the third and head into the fourth with an 81-62 lead. Former Celtic Sebastian Telfair  picked up his second technical foul in the third quarter intermission and was ejected.
The Celtics built their lead up to as many as 25 in garbage time, allowing Doc Rivers  to take out Garnett with just under 10 minutes left. However, unlike the night before, Garnett was getting rest because of a blowout lead.
The win came one night after arguably Boston’s worst effort of the season in a 26-point loss to the lowly Bobcats in Charlotte. The Celtics have Thursday off and will practice Friday in advance of their rare Saturday night home game, a revenge contest against the Bobcats at the Garden.
The Celtics will conclude their three-game homestand with a Monday night game at the Garden with LeBron James  and the Heat, who ran their win streak to 20 games with a narrow 98-94 win over the Sixers Wednesday night in Philadelphia. The Heat have road games against Milwaukee Friday and Toronto Sunday afternoon before taking on the Celtics in Boston Monday night.
For more from the team of Mike Petraglia and Ben Rohrbach from the Garden, visit the Celtics team page at weei.com/celtics .