Generally if you remove the dust cover from a brake cylinder and very carefully have someone pump the brake pedal until the piston protrudes from the brake cylinder just enough to put a vernier gauge or similar around the piston you should get a reading that compares with one of those new cylinders available.
A simple guide if no vernier available is to slide a metric open ended over the piston i.e. 16mm,19mm or 24mm should tell you what size.
Obviously a correct match is best, but failing that it must be the same on each axle for balance. What you would notice if too big or too small is down to the principles of hydraulics and the pedal effort versus pedal travel required.
In the old days the cylinder diameter was affected by whether there was a brake servo fitted or larger brake drums on your specific model.
Another thing that can effect choice of brake cylinder is the make as some vehicles used different makes,ATF, Lockheed, Girling,Bosch etc. All used different mounting points.
Another small point do not let assistant press piston out too far or you will be without working brakes for longer and brake fluid all over the brake shoes