Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Inline Function 672209.7 Ops/sec
Hooks 757697.1 Ops/sec
Without useMemo 570120.1 Ops/sec
With useMemo 443961.2 Ops/sec
Child without memo 75215.6 Ops/sec
Child with memo 208302.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Inline Function

  • Hooks

  • Without useMemo

  • With useMemo

  • Child without memo

  • Child with memo