Faster despite the uphill climb?

Experiment no.: 1.3.2103
Schneller trotz Gegenanstieg? New since 10/26
Two balls set off at the same time along tracks of different shapes. Whilst one travels horizontally, the other initially descends steeply before climbing again. Although this ball rolls uphill again on the second section of the track, it reaches the finish line first. Due to the early loss of elevation, it quickly gains speed and covers a large part of the distance more quickly. Although it slows down again on the ascent, the time gained on the first section of the track is retained.

Images for this experiment

Experiment
Motion sequence