How do you performance test JavaScript code?

前端 未结 22 1095
难免孤独
难免孤独 2020-11-22 04:18

CPU Cycles, Memory Usage, Execution Time, etc.?

Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code

22条回答
  •  一向
    一向 (楼主)
    2020-11-22 04:47

    Performance testing became something of a buzzword as of late but that’s not to say that performance testing is not an important process in QA or even after the product has shipped. And while I develop the app I use many different tools, some of them mentioned above like the chrome Profiler I usually look at a SaaS or something opensource that I can get going and forget about it until I get that alert saying that something went belly up.

    There are lots of awesome tools that will help you keep an eye on performance without having you jump through hoops just to get some basics alerts set up. Here are a few that I think are worth checking out for yourself.

    1. Sematext.com
    2. Datadog.com
    3. Uptime.com
    4. Smartbear.com
    5. Solarwinds.com

    To try and paint a clearer picture, here is a little tutorial on how to set up monitoring for a react application.

提交回复
热议问题