HTML Preparation code:
Script Preparation code:
Tests:
  • document.getElementById

  • document.querySelector

  • element.querySelector

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    document.getElementById
    document.querySelector
    element.querySelector

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Linux
View result in a separate tab
Test name Executions per second
document.getElementById 6272103.0 Ops/sec
document.querySelector 2674465.8 Ops/sec
element.querySelector 6882864.0 Ops/sec