DEV Community

Discussion on: Using arrow functions might be costing you performance

Collapse
 
karataev profile image
Eugene Karataev

In my test run the results are almost the same for all three tests (ops/sec varies +-1%).

Thread Thread
 
sleeplessbyte profile image
Derk-Jan Karrenbeld

That is the point ;)

This article is pretty fear mongering and statistically incorrect 🤓.

  • Don't worry about using arrow function expressions
  • Don't worry about using implicit return

In the same line:

  • Don't worry about relying on Automatic Semicolon Insertion
  • Don't worry about using "class"es or (other) prototype-inheritance

The bottleneck of the code is not going to be in the syntax one uses.

Thread Thread
 
karataev profile image
Eugene Karataev

Agree!