Performance optimization by parameter tuning