There are two options: first, manually test the app on different devices.
While that approach might work for a smaller app, it becomes more
cumbersome as an app grows in size. Alternatively, run an integration
test that performs a specific task and records a performance timeline.
Then, examine the results to determine whether a specific section of
the app needs to be improved.

In this recipe, learn how to write a test that records a performance
timeline while performing a specific task and saves a summary of the
results to a local file.

This recipe uses the following steps:

Write a test that scrolls through a list of items.

Record the performance of the app.

Save the results to disk.

Run the test.

Review the results.

1. Write a test that scrolls through a list of items