Quantitative investigation of critical slowing down in all-optical bistability