A compression test is an indicator of how well the rings seal against the cylinder walls and how good the valves seal. It should be done with the engine up to normal operating temp for correct metal temp/swell.
That said, a leak down test is a much better indicator as it will tell how well that cylinder holds pressure. Have both done is you have a concern. Quite honestly, with 25k miles---you are probably wasting your money. I will bet they will be within 5% of new and you might be better off checking into other issues like that health of belts, hoses, etc--things that age might affect verses mileage. Huck