For all the talk this winter about the kinder, gentler Citi Field -- and how its cozier dimensions might make for more pop -- the Mets had done little to flex their muscle.

As they entered play Wednesday night, the Mets' struggling offense languished in the bottom third of the National League in both home runs (17) and slugging percentage (.656). They had been punchless.

But the Mets broke from the script against the Orioles, scoring a 5-1 victory thanks to home runs by Curtis Granderson and Dilson Herrera.

Granderson bashed his second homer of the season, a solo shot in the third inning, as part of a two-RBI night. Herrera hammered a two-run shot in the sixth, his first homer since his recent promotion to help infuse the lineup with energy.

Herrera, who at 21 is the youngest position player in the majors, tied a career high with three RBIs.

The offensive outburst came at an opportune time as Jacob deGrom righted himself after two rough outings. The Mets' righthander upped his record to 3-3 by holding the Orioles to one run on six hits in seven innings. DeGrom struck out nine and walked one after posting a 7.84 ERA in his past two starts.

He was buoyed by a double play in the first inning, which wiped out Alejandro De Aza, who reached on a wild pitch despite striking out.

In the fifth, deGrom enjoyed his greatest escape. The Orioles had already scored a run on Jimmy Paredes' RBI single when a walk to Adam Jones loaded the bases with two outs.

With dangerous slugger Chris Davis at the plate, deGrom fell behind in the count 3-and-1. But the righthander battled back, eventually striking Davis out swinging on a slider.

As Davis tossed his bat and helmet aside in disgust, deGrom hopped off the pitcher's mound. He had survived the most harrowing moment of his outing.

The Mets took consecutive games for the first time since April 22-23 -- the final two victories of their 11-game winning streak. They did so against the Orioles (12-13), extending their winning streak against the franchise to eight games dating to June 2010.

Before a crowd of 21,667, the Mets (18-10) improved to 13-3 at Citi Field and salvaged a split of their six-game homestand.

Herrera had come into the game hitting .077. But in the second, he broke through against Orioles righty Ubaldo Jimenez, giving the Mets a 1-0 lead by sneaking a grounder through the middle of the infield to score Michael Cuddyer.

Granderson lined a solo shot in the third off Jimenez (2-2), who was chased after allowing three runs in four innings. In the fourth, Granderson struck again to give the Mets a 3-0 lead with a sacrifice fly to knock in Kevin Plawecki.

After the Orioles cut the deficit to 3-1 on Paredes' run-scoring single in the fifth, Herrera helped the Mets increase their lead in the sixth inning.

Herrera's two-run shot off Orioles reliever Brad Brach was initially ruled an RBI double off the leftfield wall to score Wilmer Flores.

However, manager Terry Collins challenged the call. A 33-second review showed that Herrera's drive had indeed struck the railing behind the fence, giving Herrera his first big-league homer since Sept. 20, 2014.