Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Windows
Desktop
2 years ago
Test name Executions per second
named function passed as reference 21259.5 Ops/sec
multiple named functions instances 84305.2 Ops/sec
named arrow function refrence 17954.8 Ops/sec
multiple anonymous functions instances 185886.9 Ops/sec
Class named function on prototype 3695.8 Ops/sec
Class arrow function on prototype 4043.8 Ops/sec
Tests:
  • named function passed as reference

  • multiple named functions instances

  • named arrow function refrence

  • multiple anonymous functions instances

  • Class named function on prototype

  • Class arrow function on prototype