News for hackers. Stuff that matters.
Re:Ask HN: How to performance test React webapps for renderi... by iamleppert on Tuesday May 21, 2019 @10:22AM (#19970391)
For frontend performance: record the frame rate (via requestAnimationFrame, look at simple frame rate counters), memory, count of DOM nodes on the page during each of your integration tests as a good start. You can get a lot of this via window.performance and memory info you need to pass an extra flag into chrome headless.

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

Re:Ask HN: How to performance test React webapps for renderi... by vnchr on Tuesday May 21, 2019 @11:24AM (#19970961)
Thanks a lot, this is something I was specifically looking for!
Re:Ask HN: How to performance test React webapps for renderi... by geezerjay on Tuesday May 21, 2019 @01:18PM (#19972220)
Don't mind the downvotes. Thank you for taking the time to post such an insightful post.
Re:Ask HN: How to performance test React webapps for renderi... by tehlike on Tuesday May 21, 2019 @12:11PM (#19971548)
+1 on instrumenting production. Best way to find out regressions, and future optimizations.