is it the higher the horsepower the faster the car
Adding horsepower can increase straight line speed. Eventually though other things like weight, aerodynamic, gearing etc... need to be address. A less powerful car could outrun a more powerful car if it has a better power to weight ratio. So a ton of power doesn't necessarily mean that the car is fastest.