HTML Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
with reduce()
55/s
with sort()
30/s

Fastest: with reduce() (1.8x faster)

View exact numbers
  • with reduce(): 55 ops/sec
  • with sort(): 30 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:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Mac OS X 10.15
View result in a separate tab
with sort()
157/s
with reduce()
104/s
View exact numbers
Test name Executions per second
with sort() 157 Ops/sec
with reduce() 104 Ops/sec