Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Linux
Desktop
4 months ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 274647.6 Ops/sec
ComponentWithUseCallback 291649.4 Ops/sec
ComponentWithInlineFunction 200261.6 Ops/sec
ComponentWithArrowFunction 196143.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction