When I need several pieces to be the same length, I stack them together and mark them all at once using a square. If it's for rails, I'll mark the tenon shoulders this way, with a knife, as it's the critical dimension for keeping the frame square.
If the bits are small and fiddly, it's worth clamping them together.
If the bits are small and fiddly, it's worth clamping them together.