Boston Red Sox’s Rafael Devers, right, celebrates his solo home run with Eduardo Nunez (36) during the fourth inning against the Baltimore Orioles in Boston on Saturday, May 19, 2018. (AP Photo/Michael Dwyer)

BOSTON — Mookie Betts and Andrew Benintendi hit consecutive home runs in the fifth inning, and the Boston Red Sox beat the Baltimore Orioles 6-3 on Saturday night.

Benintendi added a two-run single and Rafael Devers a solo homer for the Red Sox, who won for the third time in four games and improved to 5-1 against Baltimore this season.

Pedro Alvarez hit a two-run homer for Baltimore, which snapped a 13-game road losing streak a night earlier against Boston.

Rick Porcello (6-1) gave up three runs in six innings, matching his season high with nine strikeouts while walking three. He rebounded from two straight rough starts when he allowed five runs in each after opening the season by allowing three or fewer in his initial seven.

Craig Kimbrel, the third reliever, got three outs for his 13th save.

Dylan Bundy (2-6) allowed four runs in six innings, walking two and striking out eight.

Boston snapped a 1-1 tie with three runs in the fifth on the back-to-back homers by Betts and Benintendi. Betts turned on a 90-mph fastball, sending it into the Green Monster seats for his 15th homer after Sandy Leon had a leadoff double.

Four pitches later, Benintendi hit his into Baltimore’s bullpen.

Alvarez’s two-run shot sliced it to 4-3 in the sixth, but Benintendi’s single through a draw-in infield made it 6-3 in the seventh.

Devers’ drive went into the Monster seats.

TRAINER’S ROOM

Orioles: Manager Buck Showalter said reliever Darren O’Day (10-day disabled list, hyperextended right elbow) is “close” to returning, but outfielder Colby Rasmus (DL, left hip flexor) “was a little sore from all the action. We had to back a little bit off.”

Red Sox: Second baseman Dustin Pedroia (recovering from offseason left knee surgery) went 0 for 3 in a rehab start for Triple-A Pawtucket on Saturday and is scheduled to have Sunday off. Manager Alex Cora said he’d like to see him play consecutive games before coming back to the majors.

HOMER HAPPY

The Red Sox were last in the AL in homers last season, but entering Saturday they were second in majors with 62.

HOMER UNHAPPY

Bundy gave up three homers. He has allowed three or more in three of his last four starts after giving up just three total in his first six.

SLOPPY TRACK

The game was played with light-to-steady rain falling most of the night, forcing the grounds crew to bring out bags of a drying agent many times for the mound and infield.

UP NEXT

Orioles: Showalter didn’t announce a starter before the game for the series finale on Sunday, saying: “You won’t see someone in this locker room tonight that hasn’t been here.”

Red Sox: LHP Eduardo Rodriguez (3-1, 4.68 ERA) is scheduled to start against his former team. He’s 4-5 with a 4.35 ERA against Baltimore in 11 career starts.