Perez clocked a best lap time of 1:21.070 to finish at eighth while Ocon had a time of 1:21.272 to end the qualifying race at 10th spot at at the Circuit de Catalunya.
"I'm very happy to be up in P8, although I am a bit disappointed to lose out to Fernando (Alonso) by such a small margin. This result comes as a bit of a surprise after some difficult practice sessions, but I think the team did everything right this afternoon," Perez said after the qualifying race.
"Overtaking is difficult here, so I hope I can make up some ground at the start: we have some very quick cars behind us who will give us a challenge, but I think we're on course for a good race."
"My lap in Q3 was heavily compromised because I did not get the DRS to work. I pressed the button too early and the DRS did not open. So I missed out on some performance, maybe three tenths, which would have made a big difference," Ocon said.
"On the other hand, as a team we have both cars inside the top ten and we've shown that when it matters we are strong and consistent. That's encouraging for tomorrow and for the races to come. A good start and strong first lap will be important tomorrow and I'm confident we have the speed to get a good result," said the Frenchman.