If you could just measure how far your piston travels from all the way forward to all the way back, piston diameter and barrel length, thats all I need.
A cylinder with a diameter of 23mm and a length of 70mm is 29cc in volume. A cylinder 6mm diameter by 423mm is 12cc volume. So the cylinder is roughly 2.5 times larger than the barrel in volume. This is vital as if it wheren't as big no matter how strong the spring you had there simply wouldn't be enough air left to push the BB.
It would be nice to know the sweet spot exactly, does anyone know of a detailed experment trying different length barrels keeping everything else equal?