Efficient performance prediction for parallel programs