Software Performance and Scalability: A Quantitative Approach