How does cid make power?

I meant to ask identical curves both torqe and horsepower at the crankshaft.


How can you have identical torque and horsepower curves when one engine makes its power 2k higher?