Firefox OS/Performance/App Performance Validation: Difference between revisions

Line 55: Line 55:
* Perform all common interactions with the app. Track the 'Jank' number for each of the interaction. When that number is above 10ms your app' scrolling is affected. Once that number is 100ms painting will fall behind and input will be delayed. 500ms+ indicate that this interaction will be noticeable jerky.
* Perform all common interactions with the app. Track the 'Jank' number for each of the interaction. When that number is above 10ms your app' scrolling is affected. Once that number is 100ms painting will fall behind and input will be delayed. 500ms+ indicate that this interaction will be noticeable jerky.
* Understand the worse case responsiveness for each interaction of your app. Consider various workload for your app (like 5000 pictures in the Gallery App).
* Understand the worse case responsiveness for each interaction of your app. Consider various workload for your app (like 5000 pictures in the Gallery App).
* Report the number for various interaction and the workload used.


'''Debugging''':
'''Debugging''':
* Profile the app' main thread, good if you can't make an educated guess: https://developer.mozilla.org/en-US/docs/Performance/Profiling_with_the_Built-in_Profiler#Profiling_Boot_to_Gecko_%28with_a_real_device%29
* Profile the app' main thread. This is useful if you can't make an educated guess: https://developer.mozilla.org/en-US/docs/Performance/Profiling_with_the_Built-in_Profiler#Profiling_Boot_to_Gecko_%28with_a_real_device%29
* For Javascript related slowdown: Add function duration logging throughout the code.
* For JavaScript related slowdown: Add function duration logging throughout the code.
* Disable some functionality of your app to see if that reduces the event loop lag (jank).
* Disable some functionality of your app to see if that reduces the event loop lag (jank).
'''Report''':
* Report the numbers for various interaction and the workload used.


== 4. Load Time ==
== 4. Load Time ==
Confirmed users
336

edits