Simulated and experimental compression of a compact toroid