Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.124 YaBrowser/22.9.3.894 Yowser/2.5 Safari/537.36
Yandex Browser 22
Linux
Desktop
2 years ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 338713.8 Ops/sec
ComponentWithUseCallback 330426.1 Ops/sec
ComponentWithInlineFunction 271389.8 Ops/sec
ComponentWithArrowFunction 248556.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction