HTML Preparation code:
Tests:

Historical Performance Data aggregated from 26 community runs

Desktop Results:
Chrome 26 runs
createElement
440K/s
createElementNS
436K/s
View exact numbers
  • createElement: 440,349 ops/sec
  • createElementNS: 435,890 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
    createElement
    createElementNS

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Linux
View result in a separate tab
createElementNS
511K/s
createElement
485K/s
View exact numbers
Test name Executions per second
createElementNS 510,565 Ops/sec
createElement 484,954 Ops/sec