HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 15 community runs

Desktop Results:
Chrome 10 runs
lodash map
43/s
lodash forEach
41/s
native map
40/s
native for
11/s

Fastest: lodash map (3.9x faster)

View exact numbers
  • lodash map: 43 ops/sec
  • lodash forEach: 41 ops/sec
  • native map: 40 ops/sec
  • native for: 11 ops/sec
Firefox 5 runs
native for
220/s
lodash forEach
94/s
native map
74/s
lodash map
72/s

Fastest: native for (3.1x faster)

View exact numbers
  • native for: 220 ops/sec
  • lodash forEach: 94 ops/sec
  • native map: 74 ops/sec
  • lodash map: 72 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
    lodash map
    lodash forEach
    native for
    native map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Windows
View result in a separate tab
native for
222/s
lodash forEach
88/s
native map
74/s
lodash map
72/s
View exact numbers
Test name Executions per second
native for 222 Ops/sec
lodash forEach 88 Ops/sec
native map 74 Ops/sec
lodash map 72 Ops/sec