Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
C
601K/s
createElement
589K/s
map
553K/s
for loop
548K/s
combined map
439K/s
combined
423K/s
looped together
408K/s
looped together double list
408K/s

Fastest: C (1.5x faster)

View exact numbers
  • C: 601,424 ops/sec
  • createElement: 589,386 ops/sec
  • map: 552,769 ops/sec
  • for loop: 547,982 ops/sec
  • combined map: 438,693 ops/sec
  • combined: 423,252 ops/sec
  • looped together: 408,406 ops/sec
  • looped together double list: 407,614 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
    for loop
    combined map
    looped together
    looped together double list

    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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
combined map
415K/s
looped together
401K/s
looped together double list
398K/s
for loop
111K/s
View exact numbers
Test name Executions per second
combined map 414,596 Ops/sec
looped together 400,928 Ops/sec
looped together double list 398,349 Ops/sec
for loop 110,815 Ops/sec