actualDuration and baseDuration
The two Profiler timings: actualDuration is how long this commit took to render, and baseDuration estimates how long the whole subtree would take without any memoization.
In more detail
If actualDuration is much smaller than baseDuration, memoization is skipping work. If they are close, most of the subtree re-renders on every update.
Related terms
- Profiler — A React component, and a React DevTools tab, that measures how often and how long parts of the tree render.
- memoization — Remembering the result of a calculation for given inputs and reusing it when the same inputs come again, instead of recalculating.
Taught in
- Render Diagnostics: Profiling Re-Renders with React DevTools — React 19 & Modern Component Architecture