Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Linux
Desktop
2 years ago
Test name Executions per second
Inline Function 152244.8 Ops/sec
Hooks 256191.8 Ops/sec
Without useMemo 118432.7 Ops/sec
With useMemo 246616.2 Ops/sec
Child without memo 97371.1 Ops/sec
Child with memo 100559.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline Function

  • Hooks

  • Without useMemo

  • With useMemo

  • Child without memo

  • Child with memo