Lewis Hamilton goes into this afternoon's qualifying session for Formula 1's Hungarian Grand Prix as favourite for pole position after setting the pace in third free practice.
The Mercedes driver set the pace early in the session when everyone was lapping on the slower medium-compound Pirellis, just over a tenth faster than team-mate Nico Rosberg.
With most leaving it until the final 15 minutes before bolting on the softs and completing qualifying simulations, Hamilton was then knocked off top spot by Force India driver Nico Hulkenberg.
Hulkenberg was shuffled down to sixth by the end of the session, with Rosberg the first to relegate him after setting a 1m22.997s lap with 12 minutes remaining.
Three minutes later, Hamilton completed his 'qualifying' run, outpacing Rosberg by 0.098s to complete the preparation for his bid for a fifth Hungarian GP pole position.
Rosberg's session ended with two minutes remaining when his engine stalled at the end of the pitlane when he was about to attempt a practice start.
The two Mercedes drivers were untouchable at the front, with Sebastian Vettel best of the rest in third, nine-tenths off Hamilton's pace.
Daniil Kvyat edged the Toro Rosso of Carlos Sainz with his final lap of the session, putting the Red Bull fourth ahead of its sister car.
Kvyat's team-mate Daniel Ricciardo was unable to match the Russian, ending the session ninth after both Red Bulls started late to manage their engine mileage.
Max Verstappen also performed well, ending up seventh behind Hulkenberg and one place ahead of the McLaren of Fernando Alonso.
Alonso had been among the earliest drivers to set a time on the soft Pirellis, which put him third for a spell before he was shuffled back.
Behind Ricciardo, Romain Grosjean completed the top 10 for Lotus, 12-thousandths of a second ahead of team-mate Pastor Maldonado.
Williams had a quiet session, with Felipe Massa 12th and Valtteri Bottas - running the latest-specification front wing - 14th.
Perez, who had been as high as fourth by taking the soft tyre early, was 15th fastest ahead of the Ferrari of Kimi Raikkonen.
The Finn was unable to complete a qualifying simulation run because of a water leak, but he would have been comfortably in the top six had he done so given the performance gain of soft tyres.
|4||Daniil Kvyat||Red Bull/Renault||1.218s||17|
|5||Carlos Sainz Jr.||Toro Rosso/Renault||1.329s||22|
|6||Nico Hulkenberg||Force India/Mercedes||1.486s||30|
|7||Max Verstappen||Toro Rosso/Renault||1.681s||22|
|9||Daniel Ricciardo||Red Bull/Renault||1.932s||12|
|15||Sergio Perez||Force India/Mercedes||2.396s||25|