Performance prediction for dynamic voltage and frequency scaling