With a compression testing gauge.....proper way would be to warm the engine up a bit, pull all the plugs, block the throttle wide open, screw the gauge into one cylinder at a time, crank the engine over until the gauge has seen about six compression strokes, and read the psi on the gauge.
For this purpose, I think it would be acceptable to warm it up a bit, Pull the coil wire so it cannot start, block the throttle open, and pull one plug and install the gauge...spin it over so it has seen about ten compression strokes and read the gauge. Pick the easy plug to get too like number one so you don't get burned
or go thru the ordeal of getting those couple of hard plugs out if you have headers....
The gauge reading can be used to guess at the actual compression ratio on a healthy engine. For instance a reading of 150 psi will usually be close to 8-1 CR. 190 psi will be in the vicinity of 9-1. It is not perfect, but, it serves as an approximation. Obviously, the duration of the cam affects the cylinder pressure...particularly at low cranking speed...