JavaScript performance tests
Oct 19, 2013     21:11:40

When we developing simple JS app / website we don't even need to test something. If everything is simple - there is no reason to make it hard.

But while developing plugins, libraries, or a project with fat ("powerful") client-side part, JavaScript performance has much higher priority.

The are a lot of ways to test different cases:

  • JSPerf.com - JavaScript performance playground;
  • console.time() method of testing some code part performance;
  • console.time('timerName');
    /* your code */
    console.timeEnd('timerName');
  • Self written timers;