Matt Cain pitched eight dominating innings and the San Francisco Giants scored eight runs in the third inning to move into first place in the NL West with a 10-1 win over the San Diego Padres on Friday night.

Cain (12-5), who pitched a perfect game on June 13, surrendered one run on four hits. The right-hander didn't allow his first hit until Yonder Alonso's one-out double in the fifth. Alonso scored one out later on Everth Cabrera's single.

Cain, 6-0 in nine starts following a San Francisco loss, struck out six and did not walk a batter. The Giants moved one-half game ahead of the Los Angeles Dodgers, who lost 4-3 in 11 innings at Atlanta.

Marco Scutaro homered and drove in two runs and Angel Pagan had three hits and two RBIs to lead the Giants' 15-hit attack. All nine San Francisco starters had at least one hit.

San Francisco played its second game since outfielder Melky Cabrera, was suspended on Wednesday for 50 games following a positive test for testosterone.

Scutaro hit a solo homer in the first inning before San Francisco's season-high scoring output in the third off Ross Ohlendorf (4-4) and reliever Nick Mikolas.

The Giants eight runs came on eight hits including two doubles and a triple two walks and a passed ball as they sent 13 batters to the plate.

Pagan had an RBI triple and a run-scoring single in the inning. Scutaro, Pablo Sandoval, Gregor Blanco and Cain all had RBI singles and Hunter Spence drove in a run with a double.

Ohlendorf gave up a leadoff double in the inning before getting an out. He then allowed the next six batters to reach safely before getting pulled for Mikolas.

Ohlendorf allowed a career-high eight runs on six hits in 2 1-3 innings. The right-hander, who gave up seven runs in three innings of Sunday's 11-5 loss at Pittsburgh, saw his ERA rise from 6.41 to 7.58.

San Francisco has won 18 of the last 24 meetings with the Padres.

San Diego, outscored 18-1 while losing the final three of a four-game series at Atlanta that ended on Wednesday, had its four-game home winning streak snapped. The Padres had won 10 of 12 at home.

NOTES: In Ohlendorf's last start, Pittsburgh scored nine runs in the fourth inning, six off against Ohlendorf. . San Francisco has won 10 of its last 14 road games since the All-Star break, outscoring its opponents by a 103-45 margin. . The Giants recalled OF Justin Christian and RHP Eric Hacker from Triple-A Fresno on Friday. RHP Dan Otero was optioned to Fresno. . San Diego activated rookie C Yasmani Grandal (strained right oblique) from the 15-day DL. C Nick Hundley (bruised right knee) was placed on the 15-day DL. . Giants LHP Barry Zito (9-8, 4.29 ERA) faces off against Padres LHP Eric Stults (3-2, 2.45) on Saturday night.