An OS can easily run an app on each for a few milliseconds, look at the performance counters to see which ends up with more instructions executed, and then move the task to where it performs best.
From time to time, it can retry the test, because software frequently changes what it spends time doing.