Towards Cost-Effective And Performance-Aware Vision Algorithms