Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 6.61 KB

react-freeze.md

File metadata and controls

41 lines (30 loc) · 6.61 KB

Performance test - React-freeze

Test

We compare 2 cases:

We test performances on the 2 tabs of first screen and on the second screen for 3 scenarii:

  • There is just a stack navigator and a tabview without any optimization.
  • We activate react-freeze on react-native-screen with enableFreeze.
  • We activate react-freeze on react-native-screen with enableFreeze and we manually freeze the first tab with react-freeze when the user go on the second tab.

Results

We can see in the measures below that performances are the same for all scenarii.

Measures

Without freeze Timer only Timer + Animation
Home Home_1 Home_2 Home_1 Home_2
Tab 2 tab2_1 tab2_2 tab2_1 tab2_2
Screen 2 screen2_1 screen2_2 screen2_1 screen2_2
enableFreeze on react-navigation Timer only Timer + Animation
Home Home_1 Home_2 Home_1 Home_2
Tab 2 tab2_1 tab2_2 tab2_1 tab2_2
Screen 2 screen2_1 screen2_2 screen2_1 screen2_2
enableFreeze on react-navigation + react-freeze on Home Timer only Timer + Animation
Home Home_1 Home_2 Home_1 Home_2
Tab 2 tab2_1 tab2_2 tab2_1 tab2_2
Screen 2 screen2_1 screen2_2 screen2_1 screen2_2