Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 YaBrowser/22.1.0.2500 Yowser/2.5 Safari/537.36
Yandex Browser 22
Mac OS X 10.15.6
Desktop
2 years ago
Test name Executions per second
ComponentWithOuterFunctionUseCallback 378327.6 Ops/sec
ComponentWithUseCallback 368161.2 Ops/sec
ComponentWithInlineFunction 266305.6 Ops/sec
ComponentWithArrowFunction 267212.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ComponentWithOuterFunctionUseCallback

  • ComponentWithUseCallback

  • ComponentWithInlineFunction

  • ComponentWithArrowFunction


;