Joc Pederson homered three times and had eight RBI in the San Francisco Giants' 13-12 win over the New York Mets on Tuesday night.

Pederson turned the performance in after a pregame chat with Barry Bonds.

"Just getting knowledge from such a good hitter and the way he thinks about baseball and hitting, it just helped to connect some dots to free my mind up at the plate,'' Pederson said. "I'm not ever going to be Barry Bonds; he's the best hitter to touch a bat. But it definitely helped free my mind up in the box."

Pederson was preparing for the game when he and LaMonte Wade, Jr. spent 30 minutes with Bonds in the Giants' clubhouse. Pederson and Bonds chatted again in a private office before Pederson politely excused himself.

"The next thing you know, it was like 6:25 p.m., and I was like, 'I gotta go,'" Pederson said.