HTML Preparation code:
Tests:

Historical Performance Data aggregated from 92 community runs

Desktop Results:
Chrome 59 runs
Vanilla JS test case
17K/s
jQuery test case
14K/s

Fastest: Vanilla JS test case (1.3x faster)

View exact numbers
  • Vanilla JS test case: 17,144 ops/sec
  • jQuery test case: 13,535 ops/sec
Firefox 15 runs
Vanilla JS test case
13K/s
jQuery test case
7K/s

Fastest: Vanilla JS test case (1.9x faster)

View exact numbers
  • Vanilla JS test case: 12,510 ops/sec
  • jQuery test case: 6,505 ops/sec
Mobile Results:
Chrome 18 runs
Vanilla JS test case
3K/s
jQuery test case
2K/s

Fastest: Vanilla JS test case (1.4x faster)

View exact numbers
  • Vanilla JS test case: 3,013 ops/sec
  • jQuery test case: 2,098 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
    jQuery test case
    Vanilla JS test case

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0
Firefox 149 on Ubuntu
View result in a separate tab
Vanilla JS test case
6K/s
jQuery test case
3K/s
View exact numbers
Test name Executions per second
Vanilla JS test case 5,648 Ops/sec
jQuery test case 3,214 Ops/sec