Chapter  6

Benchmarking And Profiling

Being able to measure performance is required in order to determine whether optimizations are needed, and whether the optimizations actually improved anything.

Performance in most cases will be measured as a function of the time it takes to complete an operation. For example, the performance of a game will very often be measured in how many frames per second can be rendered, which directly depends on how much time it takes to render frames: to achieve a constant frame rate of 60 frames per second, each frame should take less than 16.67 milliseconds to render and display. Also, as we discussed in Chapter 1, a response time of 100 milliseconds is often desired in order for results to appear instantaneous. ...

Get Pro Android Apps Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.