Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Chrome 104
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
named function passed as reference 53154.5 Ops/sec
multiple named functions instances 51917.5 Ops/sec
named arrow function refrence 53971.5 Ops/sec
multiple anonymous functions instances 51890.6 Ops/sec
Class named function on prototype 4103.8 Ops/sec
Class arrow function on prototype 4271.3 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