There are a couple of ways. The power used by a pump is
BHp = Q*P/(1714*e) Q is the flow rate, gpm. P is the differential pressure, psi, e is the pump's efficiency as a decimal and BHp is the shaft Hp used by the pump, Hp. If you can measure those variables, you can calculate the efficiency.