Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
10 months ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 369603.2 Ops/sec
ComponentWithUseCallback 409946.2 Ops/sec
ComponentWithInlineFunction 306838.8 Ops/sec
ComponentWithArrowFunction 309310.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction