Run details:
Mozilla/5.0 (Linux; Android 12; SM-G986N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Mobile Safari/537.36
Chrome Mobile 104
Android
Mobile
2 years ago
Test name Executions per second
Inline Function 66642.8 Ops/sec
Hooks 94106.4 Ops/sec
Without useMemo 35386.2 Ops/sec
With useMemo 91581.9 Ops/sec
Child without memo 50360.1 Ops/sec
Child with memo 55994.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline Function

  • Hooks

  • Without useMemo

  • With useMemo

  • Child without memo

  • Child with memo