It's often extremely worth it. Most people don't profile though and don't care that their web apps are horrendously inefficient at almost every level.