Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Mac OS X 10.15.7
Desktop
4 months ago
Test name Executions per second
named function passed as reference 123258.6 Ops/sec
multiple named functions instances 123092.4 Ops/sec
named arrow function refrence 123826.2 Ops/sec
multiple anonymous functions instances 127166.5 Ops/sec
Class named function on prototype 10016.8 Ops/sec
Class arrow function on prototype 11844.6 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