Efficient Algorithm To Find Performance Measures In Systems Under Structural Perturbations