HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 31 community runs

Desktop Results:
Chrome 31 runs
Hooks
893K/s
With useMemo
884K/s
Inline Function
723K/s
Without useMemo
646K/s
Child with memo
523K/s
Child without memo
507K/s

Fastest: Hooks (1.8x faster)

View exact numbers
  • Hooks: 892,761 ops/sec
  • With useMemo: 883,591 ops/sec
  • Inline Function: 723,429 ops/sec
  • Without useMemo: 646,081 ops/sec
  • Child with memo: 522,558 ops/sec
  • Child without memo: 506,922 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Inline Function
    Hooks
    Without useMemo
    With useMemo
    Child without memo
    Child with memo

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Mac OS X 10.15.7
View result in a separate tab
Hooks
1.9M/s
With useMemo
1.8M/s
Inline Function
1.4M/s
Without useMemo
1.1M/s
Child with memo
959K/s
Child without memo
932K/s
View exact numbers
Test name Executions per second
Hooks 1,881,919 Ops/sec
With useMemo 1,811,280 Ops/sec
Inline Function 1,390,844 Ops/sec
Without useMemo 1,086,580 Ops/sec
Child with memo 958,795 Ops/sec
Child without memo 931,614 Ops/sec