|
|
|
Ask HN: How to performance test React webapps for rendering speed regressions?
|
|
79 points
by janci5243
2593 days ago
|
|
As React webapps get large and start to contain a lot of complex components, they often do not perform well and manifest low FPS in browser. As a result, engineers add strategies such as memoization (React.memo, shouldComponentUpdate) to avoid unnecessary computation, however they logic is fragile to code changes. Is there a way to automatically test performance (maybe in terms of FPS) of React applications regularly in CI pipelines? Any tools for this out there? |
|
It’s also useful to instrument this in your production environment (called real user metrics) for some % of user sessions and combine it with more synthetic tests.
The backend is of course really easy, just measure request times (min/avg/max) and time to first byte.
Edit: Don’t know why I’m being downvoted for this answer? Lol