HTML Preparation code:
Tests:

Historical Performance Data aggregated from 24 community runs

Desktop Results:
Chrome 19 runs
forEach (Native)
703K/s
each (jQuery)
501K/s

Fastest: forEach (Native) (1.4x faster)

View exact numbers
  • forEach (Native): 702,614 ops/sec
  • each (jQuery): 500,611 ops/sec
Firefox 5 runs
forEach (Native)
927K/s
each (jQuery)
713K/s

Fastest: forEach (Native) (1.3x faster)

View exact numbers
  • forEach (Native): 927,215 ops/sec
  • each (jQuery): 713,257 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
    forEach (Native)
    each (jQuery)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Windows
View result in a separate tab
forEach (Native)
713K/s
each (jQuery)
501K/s
View exact numbers
Test name Executions per second
forEach (Native) 712,809 Ops/sec
each (jQuery) 500,611 Ops/sec