Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Ubuntu
Desktop
2 years ago
Test name Executions per second
Inline Function 164572.0 Ops/sec
Hooks 267236.2 Ops/sec
Without useMemo 117184.3 Ops/sec
With useMemo 240188.4 Ops/sec
Child without memo 99862.6 Ops/sec
Child with memo 106357.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline Function

  • Hooks

  • Without useMemo

  • With useMemo

  • Child without memo

  • Child with memo