How does cid make power?

if both have same horsepower curves but different torque curves when gear right for the track both will a have about same torque going to the tires through out the curve.
I meant to ask identical curves both torqe and horsepower at the crankshaft.