Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 YaBrowser/22.7.5.1027 Yowser/2.5 Safari/537.36
Yandex Browser 22
Windows
Desktop
2 years ago
Test name Executions per second
Inline Function 204980.7 Ops/sec
Hooks 251574.8 Ops/sec
Without useMemo 167093.0 Ops/sec
With useMemo 250333.3 Ops/sec
Child without memo 145410.8 Ops/sec
Child with memo 158444.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline Function

  • Hooks

  • Without useMemo

  • With useMemo

  • Child without memo

  • Child with memo