How to tune performance?