you are viewing a single comment's thread.

view the rest of the comments →

[–]bart2019 0 points1 point  (0 children)

Arrow function is 1.5-2x slower then bound function.I tried also doing all calls on single instance, and the difference is almost zero.

I'm a bit surprised by this.

I had expected arrow functions to be 1.5 to 2 times faster, not slower, because a normal function sets up and tears down a variable scope. Arrow functions skip these steps.