Simply put, torque x revs = hp.
So for example one motor with say 200nm and another with 300nm at the same revs, the second motor will have more hp at that rpm. This is also why rotaries make decent hp through revs. They had to rev to make hp because they had so little torque.
You will generally find 4 strokes have to rev higher to make peak hp compared to a 2 stroke making the same hp. This is because they generally develop less torque than a 2 stroke.