How do you performance test JavaScript code?

前端 未结 22 1331
难免孤独
难免孤独 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:55

    I was looking something similar but found this.

    https://jsbench.me/

    It allows a side to side comparison and you can then also share the results.

提交回复
热议问题