Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 YaBrowser/22.11.0.2484 Yowser/2.5 Safari/537.36
Yandex Browser 22
Linux
Desktop
2 years ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 364340.1 Ops/sec
ComponentWithUseCallback 351177.3 Ops/sec
ComponentWithInlineFunction 302444.8 Ops/sec
ComponentWithArrowFunction 296774.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction