SAN FRANCISCO -- In his first three starts of the season, Brett Tomko had gotten few breaks, one run of support and no wins.
The change in Tomko's fortunes could be summed up with his hit, a broken-bat single to right field over a drawn-in infield. Tomko initially thought he had fouled the ball off, looking down toward third base to try to find the ball.
"Then I heard the crowd cheer and I thought I better start running," Tomko said.
The hit capped a four-run fourth inning, the big frame the Giants had been looking for after losing four of five games. They had scored just 10 runs in that span as they struggle early this season without injured slugger Barry Bonds.
Yorvit Torrealba keyed the offense in a rare start, hitting a solo homer to score San Francisco's first run and adding an RBI double in the fourth against Chris Capuano (0-2).
Tomko (1-3) followed Torrealba's double with his two-run single and did the job on the mound. He allowed two runs and eight hits in 6 1/3 innings to improve to 7-1 in his career against Milwaukee.
"I feel like I have thrown the ball well the whole year," Tomko said. "But it has been a bumpy road. It's nice to get a win on the board. It's nice to get that first one out of the way."
Scott Eyre got Lyle Overbay to fly out with the bases loaded to end the seventh inning and Armando Benitez got five outs for his fourth save.
Benitez, who had no strikeouts in his first six outings with San Francisco, struck out three of the six batters he faced.
"He's throwing hard again," Giants manager Felipe Alou said. "You look up and you don't see 90 or 89 (mph) anymore; you see 95. That's the guy we signed. ... He's got the face of a closer now."
The Brewers, who snapped a seven-game losing streak Friday against San Francisco, got an RBI single from Carlos Lee in the third inning and a solo home run into McCovey Cove -- the ninth ever by a Giants opponent -- by Russell Branyan in the fourth.
Branyan was in the middle of things defensively at third base in the bottom half, contributing to San Francisco's big inning. Pedro Feliz opened the inning by lining a ball off Branyan's glove for a single. After Edgardo Alfonzo walked, Moises Alou hit a high chopper that hit off Branyan's glove for another infield hit, loading the bases.
Marquis Grissom followed with a sacrifice fly to tie the game at 2 and Torrealba doubled off the left-field wall to score Alfonzo. Tomko's single made it 5-2.
"We made a couple of mistakes defensively," Brewers manager Ned Yost said. "Feliz's ball popped out of Russ' glove, then there was an error and all of a sudden they had four runs. It kind of got away from us that inning."
Grissom added an RBI single in the eighth for the Giants.
Torrealba made just his third start of the season as Alou gave starting catcher Mike Matheny the day off after playing 22 innings the previous two nights. Torrealba, who entered the game 0-for-6, had three hits, including a homer over the center-field fence to lead off the third inning.
"I don't think I had a quality at-bat or hit the ball hard my first two starts," Torrealba said. "Having a game like today should help me get going."
Capuano allowed five runs and nine hits in 5 2/3 innings.
"I pitched the best of all my four starts and got the worst result ... ," Capuano said. "The ball just bounced the wrong way."
Tomko was picked off first after his two-run single. ... Alou was 0-for-10 on the season before his hit in the fourth. ... The Brewers haven't won consecutive games since opening the season 3-0. ... The last Giants' opponent with a "splash hit" was Cliff Floyd of the Mets on Aug. 21, 2004. Michael Tucker had one earlier this year for San Francisco. ... Giants LF Bonds had fluid drained from his injured right knee Thursday and expects to resume his rehabilitation next week.