HTML Preparation code:
Tests:

Historical Performance Data aggregated from 11 community runs

Desktop Results:
Chrome 11 runs
with reduce()
1/s
with sort()
0/s

Fastest: with reduce() (2.6x faster)

View exact numbers
  • with reduce(): 1 ops/sec
  • with sort(): 0 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
    with reduce()
    with sort()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139 on Mac OS X 10.15
View result in a separate tab
with sort()
1/s
with reduce()
1/s
View exact numbers
Test name Executions per second
with sort() 1 Ops/sec
with reduce() 1 Ops/sec