HTML Preparation code:
Script Preparation code:
Tests:
  • set textContent

  • cached textContent prototype

  • avoid remove the existing node and create a new one

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    set textContent
    cached textContent prototype
    avoid remove the existing node and create a new one

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Linux
View result in a separate tab
Test name Executions per second
set textContent 5388247.5 Ops/sec
cached textContent prototype 3767642.5 Ops/sec
avoid remove the existing node and create a new one 1926092.0 Ops/sec