The length of the straight make no difference if both cars had reached their top speed.

But as you can see, the difference between the two is not abysmal.