Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0
Firefox 101
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 246313.0 Ops/sec
ComponentWithUseCallback 249410.7 Ops/sec
ComponentWithInlineFunction 159634.2 Ops/sec
ComponentWithArrowFunction 159460.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction