Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Ubuntu
Desktop
one year ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 279874.0 Ops/sec
ComponentWithUseCallback 270297.8 Ops/sec
ComponentWithInlineFunction 147934.0 Ops/sec
ComponentWithArrowFunction 129806.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction